benfred/py-spy
View on GitHub ↗ ★ 15,624 Rust
Sampling profiler for Python programs
26 mentions on Hacker News by 19 people: 2 stories, 24 comments · first 2018-09-06 · latest 2025-03-07
20082026
-
…profilers for non-native languages (e.g. python). Does this mean that they use something similar to https://github.com/benfred/py-spy ? Otherwise, it's not obvious to me how they can read python state. Lastly, the github repo…
comment by maknee · 2025-03-07 · in Strobelight: A profiling service built on open source technology -
…to cProfile/profile. You might also want to look at: 1] https://github.com/joerick/pyinstrument 2] https://github.com/benfred/py-spy 3] https://github.com/P403n1x87/austin 4] https://github.com/bloomberg/memray 5]…
comment by infocollector · 2024-10-22 · in Scalene: A high-performance, high-precision CPU, GPU, memory profiler for Python -
…readable by the Firefox Profiler tool. [1] : https://github.com/joerick/pyinstrument [2] : https://github.com/benfred/py-spy
comment by scottwick · 2023-07-05 · in FunctionTrace: Graphical Python Profiler -
https://github.com/benfred/py-spy is also really nice, and has an actual oss license.
comment by kapilvt · 2023-07-05 · in FunctionTrace: Graphical Python Profiler -
For CPU cycles, py-spy[0] is getting more and more used. For RAM, I would like to known too... [0] -- https://github.com/benfred/py-spy
comment by wdroz · 2023-05-02 · in Grasshopper – An open-source Python library for load testing -
…a profiling tool that can generate flame charts containing a mix of python and C (or C++) calls. https://github.com/benfred/py-spy It's worked really well for my needs
comment by bobbyi · 2023-04-26 · in Debugging a Mixed Python and C Language Stack -
Any advantages/disadvantages compared to py-spy [1]? [1]: https://github.com/benfred/py-spy
comment by gkbrk · 2023-01-15 · in Trace your Python process line by line with minimal overhead -
…Chrome can render but it does produce great interactive SVGs and is compatible with speedscope.app https://github.com/benfred/py-spy https://github.com/jlfwong/speedscope
comment by nszceta · 2022-12-09 · in Data-driven performance optimization with Rust and Miri -
It is pretty cool. py-spy has also been doing this for a few years https://github.com/benfred/py-spy
comment by henrydark · 2022-09-24 · in Run SQL on CSV, Parquet, JSON, Arrow, Unix Pipes and Google Sheet -
…about leaving your program suspended - I believe that was because of a bug that should be fixed now https://github.com/benfred/py-spy/issues/390 =(
comment by benfrederickson · 2021-11-10 · in Why Python needs to be paused during profiling – but Ruby doesn't always -
…these HPC tools to the spreadsheet. FYI I'd consider py-spy for profiling Python+C extensions: https://github.com/benfred/py-spy#can-py-spy-profile-native-...
comment by mhansen · 2021-10-09 · in Profilerpedia: A Map of the Software Profiling Ecosystem -
…taking a sample. Py-spy defaults to blocking because the results can be pretty wrong otherwise: https://github.com/benfred/py-spy/issues/56 . You can see this problem profiling a program like https://github.com/benfred/py-spy/blob/master/te…
comment by benfrederickson · 2020-10-27 · in Show HN: Austin-Tui – Spy inside a running Python program at no performance cost -
Two other profilers that also let you spy on a running Python program: - py-spy: https://github.com/benfred/py-spy (written in Rust) - pyflame: https://github.com/uber-archive/pyflame (C++, seems to be not maintained anymore) The "no…
comment by jvns · 2020-10-27 · in Show HN: Austin-Tui – Spy inside a running Python program at no performance cost -
…saving down an svg file and opening up the browser a bit arduous. Excited to give it a try. [1] https://github.com/benfred/py-spy [2] https://jvns.ca/blog/2018/09/08/an-awesome-new-python-profil...
comment by abuckenheimer · 2020-10-20 · in PyInstrument – A statistical Python profile that focuses on the slow parts -
….com/rwth-i6/returnn/blob/5b8e34ec1fd725d0e20b... Profiling is another topic. Something like Py-Spy ( https://github.com/benfred/py-spy ) can be very helpful. I also found a remote background ZMQ IPython/Jupyter kernel to be useful…
comment by albertzeyer · 2020-06-02 · in Guide to Python Debugging -
…doesn’t work with threads, and significantly slows your program down. I wrote a tool py-spy ( https://github.com/benfred/py-spy ) that is worth checking out if you’re interesting in profiling python programs. Not only does it solve those…
comment by benfrederickson · 2020-01-14 · in Making Python Programs Blazingly Fast -
Similar to PyFlame is also py-spy: https://github.com/benfred/py-spy > While pyflame is a great project, it doesn't support Python 3.7 yet and doesn't work on OSX, Windows or FreeBSD. I wonder how the CPU profiling in Scalene is different.…
comment by albertzeyer · 2020-01-09 · in Scalene: a high-performance, high-precision CPU and memory profiler for Python -
▲ 2
Sampling Profiler for Python Programsstory by gilad · 2020-01-05 · 0 comments
-
…`py-spy` for debugging perf issues. Flamegraphs are much nicer to work with than cProfile's output. https://github.com/benfred/py-spy
comment by emptysea · 2019-12-03 · in BPF: A New Type of Software -
woah I hadn't seen that.. sounds like PySpy but implemented in BPF. That's crazy and cool: https://github.com/benfred/py-spy
comment by lathiat · 2019-10-11 · in BPF at Facebook and beyond -
I wrote something that will get you the python interpreter stack from any running cpython process : https://github.com/benfred/py-spy/ , and rbspy can do the same for ruby https://github.com/rbspy/rbspy
comment by benfrederickson · 2018-10-15 · in Using /proc to get a process' current stack trace -
…to look for ways to improve your python code, check out https://github.com/uber/pyflame or https://github.com/benfred/py-spy
comment by sciurus · 2018-09-27 · in Profiling CPython at Instagram (2017) -
https://github.com/benfred/py-spy#when-do-you-need-to-run-as... tl;dr - yes, it's a limitation(?) of macOS syscalls.
comment by MetricMike · 2018-09-07 · in Show HN: Py-spy – A new sampling profiler for Python programs -
…Both of your suggestions totally make sense. I've created an issue to track the poll() issue here https://github.com/benfred/py-spy/issues/13 - I think that should be an easy fix.
comment by benfrederickson · 2018-09-06 · in Show HN: Py-spy – A new sampling profiler for Python programs -
…I'm hoping to have a version that supports this next week. Will update this issue when it's done: https://github.com/benfred/py-spy/issues/3
comment by benfrederickson · 2018-09-06 · in Show HN: Py-spy – A new sampling profiler for Python programs -
▲ 286
Show HN: Py-spy – A new sampling profiler for Python programsstory by benfrederickson · 2018-09-06 · 43 comments