How to profile compile times of a source code?
Boris Carvajal
boris2.9 at gmail.com
Sun Jan 31 16:39:12 UTC 2021
On Sunday, 31 January 2021 at 16:13:24 UTC, Anonymouse wrote:
> 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.)
Use the 'import-chrome' tool bundled in Tracy to convert it.
More information about the Digitalmars-d-learn
mailing list