Granulate / gprofiler

gProfiler is a system-wide profiler, combining multiple sampling profilers to produce unified visualization of what your CPU is spending time on.
https://profiler.granulate.io
Apache License 2.0
743 stars 54 forks source link

Adding flag --pid/-p to pyperf doesn't result as intended #764

Open mpozniak95 opened 1 year ago

mpozniak95 commented 1 year ago

Found during work on filtering PID's (https://github.com/Granulate/gprofiler/pull/761). As stated in issue title: Adding flag --pid/-p to pyperf doesn't result as intended. Pyperf seems to ignore this flag and profile everything anyway.

For now instead of filtering PID's and profile only pid's provided by --pid pyperf profile every python process and then filter output to return only pid's provided. This needs to be changed