Live data from Hacker News

Visual profiler for Python

github.com

31–38 of 38 posts

Re: Visual profiler for Python

#31

KCacheGrind relies on using valgrind, which gives you extremely detailed information on runtime information by wrapping your execution context at a very low level. For this reason, it can track individual memory allocations, function call statistics, etc. However, for Python, that can be a bit overkill; usually you're just looking to measure what parts of your code are taking up executing time and heap space. This pa…

[deleted]

Re: Visual profiler for Python

#32

KCacheGrind relies on using valgrind, which gives you extremely detailed information on runtime information by wrapping your execution context at a very low level. For this reason, it can track individual memory allocations, function call statistics, etc. However, for Python, that can be a bit overkill; usually you're just looking to measure what parts of your code are taking up executing time and heap space. This pa…

> It's doing what valgrind does but in a much "higher-level" fashion, in pure Python.

Valgrind is essentially a VM, this uses cProfile - I wouldn't call that doing the 'same thing' at all.

Re: Visual profiler for Python

#35
post #30
post #29

Is there a similar tool of the code heatmap but for JS?

Lots of info on that here: http://www.brendangregg.com/flamegraphs.html

I mean the code coverage tool, not the flame graphs. To e.g. know what paths of the code are never executed. Chrome and Firefox already show flame graphs in their profilers.
Post reply on HN