SIGN IN SIGN UP

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>
L
László Kiss Kollár committed
3e06cfcaeee31c2a6e9befe5ea54d9beaa2c0434
Parent: efc08c5
Committed by GitHub <noreply@github.com> on 9/14/2025, 10:47:14 PM