LDC2 and classic profiling

Denis Feklushkin feklushkin.denis at gmail.com
Sat May 11 06:59:52 UTC 2019


On Saturday, 11 May 2019 at 05:46:29 UTC, Denis Feklushkin wrote:

> All another calls is made inside of this lambda - maybe lambdas 
> is not traced by profiler?

Tried to remove lambda with same result.

Command:

llvm-profdata show -all-functions -topn=100000 default.profdata

returns huge amount of std*, core*, vibe* calls - it is all used 
in my code. But here is no one my own function (except "main").

Also I changed flags to "dflags-ldc": 
["-fprofile-instr-generate", "-O0"] - second flag disables 
optimisation (I assumed that optimizations magically completely 
remove calls to my functions. But this is probably not the case.)


More information about the Digitalmars-d-learn mailing list