Tutorial on LDC's -ftime-trace

WebFreak001 d.forum at webfreak.org
Tue May 2 01:35:43 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

cool, thanks for the tutorial! These tutorials can help show 
things that are used commonly, that can ideally be simplified in 
IDEs such as code-d/serve-d as well.

The tracy viewer or web viewer could for example be embedded in 
the IDE.

Compilation times for modules and methods could also be shown 
inside the editor / code. There was once an experimental setting 
in code-d with dmd for imports which just tried compiling with a 
single import, but this would be much more accurate and be able 
to display times relative to the total compilation time.



More information about the Digitalmars-d-announce mailing list