by scottwick · 3y ago · 0 comments
[1] : https://github.com/joerick/pyinstrument [2] : https://github.com/benfred/py-spy
You can then post-process that trivially to get low resolution aggregate information like normal statistical/sampling profilers generate.
I assume the hooks Python makes available are probably just kind of bad for this use case and they do not have access to a proper high speed log.