3 ms·
Still not exactly great. I'd like to get a flamegraph view of the profile[0] or a chrome-style time series as it provides a much clearer high-level picture, but
by masklinn 12y ago
Still not exactly great. I'd like to get a flamegraph view of the profile[0] or a chrome-style time series as it provides a much clearer high-level picture, but I'm not sure cProfile records enough information to do so (or that it stores threading informations in the profile, which would be necessary for time series)
[0] http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html
- andor 12y agoI added flamegraph to plop, if you're interested: https://github.com/andreasf/plop/tree/flamegraph_support https://github.com/andreasf/plop/tree/flamegraph_support Here's an example: http://zentrale1.com/~an/nachher5.svg http://zentrale1.com/~an/nachher5.svg
- ehvatum 12y agoThis thread changed my life.
- andor 12y agoFew more tips for successful Python profiling: * By default, the ITIMER signals used by the profiler interrupt syscalls. Disable that by adding the following in plop.Collector.__init__() after the call to signal.signal(): signal.siginterrupt(sig, False) * Try all ITIMER modes, e.g. by changing the default in plop.Collector.__init__()