I’ve written about profiling topplot over at the Codethink company blog(scroll down to the Profiling section).

There I talk about using the statistical profiler py-spy to produce a flamegraph for a birdseye view of activity, and digging deeper with the deterministic profiler yappi, graphing its output with kcachegrind.

Since then I’ve come across some more tools (notably through Malek Cellier in this comment) and am noting them here for future reference. I intend to expand on what’s here in quantity (if/when I come across other tools) and quality (when I get around to trying them out).

Malek also mentioned in passing the Tracy C++ profiler, which looks v.cool.