logoalt Hacker News

Profiling.sampling – Statistical Profiler

78 pointsby djoldmanlast Sunday at 11:19 AM23 commentsview on HN

Comments

wongarsutoday at 2:00 PM

What I like about profiling.tracing is how you can control it in the same code base that you are profiling. That turns tracing into a feature you can ship, not just a tool you can attach. Profiling.sampling doesn't seem to provide anything similar, it has to run as a separate process

show 1 reply
thomasmgtoday at 2:30 PM

I'm not trying to criticize, but Python is known to be much slower than eg. Java or Go etc. So for performance-critcal code, why use Python? I find Python to be very good because it is concise and simple, but I have not used it for production so far.

show 10 replies
modelesstoday at 2:20 PM

This sounds a lot like py-spy. How does it compare?

show 2 replies
krystalgamertoday at 1:54 PM

wiwm i'd imagine it has a 3rd party tool. very nice to get it out of the box in 3.15

latterentoday at 3:17 PM

Interesting, does wall-time mode work with Asyncio?

Imagine if I have a single request calling asyncio.gather() on 5 different coroutines. Only 1 is on CPU, the other 4 are on IO. Is Tachyon able to sample all 5 coroutine tasks?

show 1 reply