LDC2 and classic profiling
    Johan Engelen 
    j at j.nl
       
    Fri May 10 18:09:28 UTC 2019
    
    
  
On Friday, 10 May 2019 at 14:00:30 UTC, Denis Feklushkin wrote:
> Build with dub some package. Profiling are enabled by dub.json:
>
> "dflags-ldc": ["-fprofile-instr-generate", 
> "-finstrument-functions", "-cov"],
>
> Resulting default.profraw (and generated default.profdata) 
> contains only calls to external libraries, but not my internal 
> functions calls.
>
> Why?
You only need `-fprofile-instr-generate` for generating 
default.profraw.
> contains only calls to external libraries
That's impossible, because those are exactly _not_ profiled.
This may help: 
https://forum.dlang.org/post/voknxddblrbuywcyfdwt@forum.dlang.org
-Johan
    
    
More information about the Digitalmars-d-learn
mailing list