diff --git a/gprofiler/main.py b/gprofiler/main.py index 7e4e8ed77..628c85e2b 100644 --- a/gprofiler/main.py +++ b/gprofiler/main.py @@ -489,7 +489,7 @@ def _snapshot(self) -> None: if NoopProfiler.is_noop_profiler(self.system_profiler): temp_merged = concatenate_profiles( process_profiles=process_profiles, - container_names_client=self._profiler_state.container_names_client, + container_names_client=None, enrichment_options=self._enrichment_options, metadata=metadata, metrics=metrics, @@ -500,7 +500,7 @@ def _snapshot(self) -> None: temp_merged = merge_profiles( perf_pid_to_profiles=system_result, process_profiles=process_profiles, - container_names_client=self._profiler_state.container_names_client, + container_names_client=None, enrichment_options=self._enrichment_options, metadata=metadata, metrics=metrics,