Tutorial on LDC's -ftime-trace

Johan j at j.nl
Fri May 5 17:10:28 UTC 2023


On Monday, 1 May 2023 at 18:12:47 UTC, Johan wrote:
> On Monday, 1 May 2023 at 17:56:21 UTC, Johan wrote:
>> On Monday, 1 May 2023 at 14:00:23 UTC, Mike Parker wrote:
>>> Dennis Korpel has a new tutorial out on the foundation's 
>>> YouTube channel, showing how to employ LDC's -ftime-trace 
>>> option to improve your project's compile times. This can come 
>>> in handy if you're heavily using metaprogramming or CTFE.
>>>
>>> https://youtu.be/b8wZqU5t9vs
>>
>> Thanks Dennis for making the video.
>>
>> Does anybody have an idea about how change the txt output to 
>> trick code-folding editors in enabling folding the 
>> timetrace2txt output?
>
> Looks like indentation alone would already do the trick for 
> SublimeText. So I'll see about implementing an 
> `--indentation=x` option for timetrace2txt to indent the list 
> entries instead of showing the fancy tree view.

Added a very simple option for this: 
https://github.com/ldc-developers/ldc/pull/4391

Works well with SublimeText 
(https://www.youtube.com/watch?v=80UUPMUAP-g), makes it much 
easier to navigate through large traces. Dennis commented on this 
in his video (having to switch to a better viewer than just 
simple text); hope this helps a little.

cheers,
   Johan



More information about the Digitalmars-d-announce mailing list