diff --git a/gprofiler/profilers/python.py b/gprofiler/profilers/python.py index a25bdb6f5..65ce0b54c 100644 --- a/gprofiler/profilers/python.py +++ b/gprofiler/profilers/python.py @@ -276,6 +276,7 @@ def _select_processes_to_profile(self) -> List[Process]: pass except Exception: logger.exception(f"Couldn't add pid {process.pid} to list") + return filtered_procs + [Process(pid) for pid in self._python_pyspy_processes] def _should_profile_process(self, process: Process) -> bool: