tree: 15aa07626d4c8ec137ac9eb0ac8caad6790c3b4c
  1. include/
  2. tests/
  3. BUILD.gn
  4. README.md
zircon/kernel/lib/heap/profile/README.md

Zircon heap profiler

To understand how the kernel is using memory, developers can generate heap snapshots that reveal memory allocations and their corresponding stack traces.

The Zircon Heap Profiler tracks statistics such as the number of live allocations in memory and the total number of allocations since system start.

The data is held in a VMO shared with userspace via /boot/kernel/i/memory-profile/d/heap.bin

More detail on how to use it at src/performance/memory/heapdump/kernel-collector/README.md