feat: remove strip_dirs in Recorder python cProcfile (#33300)
This commit is contained in:
parent
c0c8529436
commit
56b2dfeea1
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue