The heap profiler records heap allocations, and exports heap dumps via Chrome tracing.
The code is divided into three directories:
components/services/heap_profiling/ contains the core logic that records allocations.
components/heap_profiling/multi_process contains
components/heap_profiling/in_process contains
chrome/browser/profiling_host/ contains: