cpython/Lib/profiling/sampling
László Kiss Kollár 3e06cfcaee
gh-135953: Reduce memory usage of stack collectors (#138875)
The stack collector base class keeps all frames until export() is
called, which causes significant unnecessary memory usage. Instead, we
can process the frames on the fly in the collect call by dispatching the
aggregation logic to the subclass through the process_frames method.

Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
2025-09-14 23:47:14 +01:00
..
_assets gh-71648: Optimize PNG files (GH-138842) 2025-09-12 20:13:05 +00:00
_vendor gh-135953: Add flamegraph reporter to sampling profiler (#138715) 2025-09-09 23:06:45 +01:00
__init__.py gh-135953: Reduce memory usage of stack collectors (#138875) 2025-09-14 23:47:14 +01:00
__main__.py gh-138704: Add PermissionError messages to profiling.sampling (#138705) 2025-09-11 14:32:08 +01:00
_sync_coordinator.py
collector.py
flamegraph.css gh-135953: Prevent overflow in the profiler flamegraph hover boxes (#138880) 2025-09-14 21:50:18 +01:00
flamegraph.js gh-135953: Reduce memory usage of stack collectors (#138875) 2025-09-14 23:47:14 +01:00
flamegraph_template.html gh-135953: Add flamegraph reporter to sampling profiler (#138715) 2025-09-09 23:06:45 +01:00
pstats_collector.py
sample.py gh-135953: Add flamegraph reporter to sampling profiler (#138715) 2025-09-09 23:06:45 +01:00
stack_collector.py gh-135953: Reduce memory usage of stack collectors (#138875) 2025-09-14 23:47:14 +01:00
string_table.py gh-135953: Reduce memory usage of stack collectors (#138875) 2025-09-14 23:47:14 +01:00