How to profile compile times of a source code?

Anonymouse zorael at gmail.com
Sun Jan 31 16:13:24 UTC 2021


On Sunday, 31 January 2021 at 12:31:59 UTC, Johan Engelen wrote:
> Try LDC 1.25 (now in beta testing) with --ftime-trace. Clang 
> has the same option, so you can read more about it online in 
> that context. Be sure to check out the related commandline 
> flags.
> I recommend the Tracy UI to look at traces, because it is by 
> far the fastest viewer of large traces. 
> https://github.com/wolfpld/tracy
>
> -Johan

Does ldc produce traces in a format that Tracy supports? I can't 
seem to open the generated *.time-trace files with it. (tracy 
0.7.5-1 installed from Arch Linux AUR.)


More information about the Digitalmars-d-learn mailing list