On Sunday, 25 December 2016 at 19:16:03 UTC, Martin Nowak wrote:
Just a few infos on using perf and related tools for profiling
There is a nice gui tool for the same purpose,
I find it easier to use then perf since it lists the useful
statistics as a table.
Also very useful is valgrind --tool=callgrind
and the gui for it kcachegrind.
I used it to optimize the newCTFE code with great success.
Also I would recommend to compile the executable you are
profiling with -g -gc, as you will be able to see which lines of
code asm instructions correspond to.