Live data from Hacker News

Show HN: Py-spy – A new sampling profiler for Python programs

github.com

1–10 of 44 posts

Re: Show HN: Py-spy – A new sampling profiler for Python programs

#6
post #3

I would love something like that for Ruby :) I am envious, well done!

Hah, and I'd love something like this for Common Lisp.

SBCL's sampling profiler is pretty finicky, and I haven't figured out yet how to use Linux-level profiling tools to get something useful out of a CL image.

So I second the OP, well done!

Re: Show HN: Py-spy – A new sampling profiler for Python programs

#8
post #2

"top" for python programs. Thats pretty awesome - not sure if this has existed in other traces, but the output is great.

If you're talking about the flame graphs, they're a fairly common feature of modern profilers. The oldest implementation I know of is at https://github.com/brendangregg/FlameGraph.

Re: Show HN: Py-spy – A new sampling profiler for Python programs

#10
Many thanks for building and releasing this. It's ridiculously easy to install (especially in virtualenvs) and very powerful. When I push '3' or '4', I get informative, stable output.

Minor feature request: an explicit 'pause' button would make it easier to copy file paths from the output. Ctrl-S is a reasonable alternative, but it's a little hacky.

Also, it would be nice to somehow eliminate time spent in poll() from the results. I'm profiling a server process and 99.9% of the time is spent in a poll function. Perhaps there could be an option to disregard time spent in system calls rather than user code. Most of the time I'm interested in profiling only user code.

(Actually, I've been looking for a reason to play with Rust code. Maybe I'll try to add these features myself!)

Post reply on HN