Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-135953: Fix refleak in cache method
  • Loading branch information
pablogsal committed Sep 9, 2025
commit 3ed9e9e200c2d3588dbf7af99186ede8da11e8de
3 changes: 2 additions & 1 deletion Lib/profiling/sampling/stack_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def export(self, filename):

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:
Expand Down
Loading