feat: remove strip_dirs in Recorder python cProcfile (#33300)

This commit is contained in:
HENRY Florian 2025-07-15 14:21:44 +02:00 committed by GitHub
parent c0c8529436
commit 56b2dfeea1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,9 +252,7 @@ class Recorder:
if self.config.profile or self.profiler:
self.profiler.disable()
profiler_output = io.StringIO()
pstats.Stats(self.profiler, stream=profiler_output).strip_dirs().sort_stats(
"cumulative"
).print_stats(200)
pstats.Stats(self.profiler, stream=profiler_output).sort_stats("cumulative").print_stats(200)
profile = profiler_output.getvalue()
profiler_output.close()
return profile