Came from JavaScript and relies on flame graphs for performance debugging. Is there such a tool for Nim as well?
like https://developers.google.com/web/tools/chrome-devtools/rendering-tools/js-execution .
I use Apple Instruments, or perf annotate or Intel VTune.
Anything that works with C/C++ would work with Nim you just need to compile with "--debugger:native" so that they see the debugging symbols.
Example of perf bug hunting with Apple Instruments:
https://github.com/nim-lang/Nim/issues/9514
And perf bug hunting with intel VTune
https://github.com/mratsim/weave/issues/25
I don't have a screenshot of perf annotate though.
Regarding using perf I wrote some notes debugging a performance issue in ggplotnim last year. They are a little... informal though. But maybe they can still be of some use to someone. At least should give an idea how to use perf in combination with callgrind and kcachegrind: