Tracy Profiler Integration

Stefan Koch uplink.coder at googlemail.com
Wed Aug 5 11:13:00 UTC 2020


On Wednesday, 5 August 2020 at 10:44:24 UTC, aberba wrote:
> On Wednesday, 5 August 2020 at 10:34:55 UTC, Stefan Koch wrote:
>> On Tuesday, 4 August 2020 at 20:55:11 UTC, Per Nordlöw wrote:
>>> On Tuesday, 4 August 2020 at 20:54:01 UTC, Per Nordlöw wrote:
>>
>> i.e. they know what they are.
>>
>> In the example f(a, b).
>> That would mean we know the type, size, location and meaning 
>> of f, a, and b.
>> As well as anything f, a, and b might refer to.
>> Determining this can be a very expensive process,
>> just searching scopes upwards to know the meaning of a name 
>> can take very long,
>> if you have deep nesting (this happens in recursive templates 
>> for example.)
>
> How much of a part does non-templated nested 
> function/classes/struct play in this?
>
> And is it more about the scope where they are called or where 
> they are defined in code?

It's all about the point of definition.
I doubt regular nested functions/aggregates ever have a nesting 
level of over 20 which is when this stuff starts to matter.


More information about the Digitalmars-d mailing list