Profiling calls to small functions

albert-j via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 21 07:12:17 PST 2017


> I'm not sure if it's what happening in this case but, in code 
> as simple as this, function calls can sometimes be the 
> bottleneck. You should see how compiling with/without -O 
> affects performance, and adding `pragma(inline)` to funcB.

When compiled with -inline, the profiler does not report the 
performance of funcA and funcB individually, and this is what I 
want to measure.




More information about the Digitalmars-d-learn mailing list