Tutorial on LDC's -ftime-trace

Johan j at j.nl
Mon May 1 17:56:21 UTC 2023


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?

Two additions:
- You forgot about the `--ftime-trace-granularity=<uint>` option 
;-P
- The timetrace can also tell you which parts of your program to 
separate into separate files + separate compilation.

cheers,
   Johan



More information about the Digitalmars-d-announce mailing list