Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
pyflame, a fantastic python profiler that uses linux ptrace system call to collect profiling information. It gives you a graph to see where you have messed things up!

One of the great great great things about this library is that you can attach it to a currently running process to profile it. A command like below will do the job:

# Attach to PID 12345 and profile it for 1 second
pyflame -p 12345

Code and installation can be found in github:
- https://github.com/uber/pyflame

Read more about it:
- https://pyflame.readthedocs.io/en/latest/

#python #pyflame #profiler