gh-135953: Fix refleak in cache method (#138721)
This commit is contained in:
committed by
GitHub
parent
137519a38c
commit
766e7f150a
@@ -85,8 +85,9 @@ class FlamegraphCollector(StackTraceCollector):
|
||||
|
||||
print(f"Flamegraph saved to: {filename}")
|
||||
|
||||
@staticmethod
|
||||
@functools.lru_cache(maxsize=None)
|
||||
def _format_function_name(self, func):
|
||||
def _format_function_name(func):
|
||||
filename, lineno, funcname = func
|
||||
|
||||
if len(filename) > 50:
|
||||
|
||||
Reference in New Issue
Block a user