vpelletier / pprofile

Line-granularity, thread-aware deterministic and statistic pure-python profiler
GNU General Public License v2.0
447 stars 28 forks source link

this tool doesn't support multiprocess, right? #31

Closed scotthuang1989 closed 5 years ago

scotthuang1989 commented 5 years ago

I read through the documentation and also try it my self. this tool doesn't support multi-processing profiling, right?

vpelletier commented 5 years ago

Correct, on its own it does not do anything outside of the python process it is used in.

If you start it in multiple interconnected processes, you will get separate traces and whenver one process waits on IPC from another it will just show as that syscall/function waiting (ex: a blocking read, or a blocking select/poll/...).

scotthuang1989 commented 5 years ago

thanks for rthe quick answer, I will find other tools to do the job.