tree: 37cacc7493f7d358838625bd3af1d0c524e94df1 [path history] [tgz]
  1. lib/
  2. BUILD.gn
  3. README.md
src/performance/memory/stacktrack/README.md

Stacktrack

Stacktrack is a profiling tool that records the peak stack usage observed for each thread in a process.

VMO format

The Stacktrack VMO consists of a header followed by an array of nodes, indexed by zero-based integers. A linked list is built on top of this array, allowing a list of active threads to be maintained without requiring contiguous storage.

Each node represents a thread, storing the deepest stack trace observed so far. This structure allows a reader to reconstruct the state of all active threads simply by traversing the linked list from the header.