Allocation timeline
Allocation instrumentation on timeline (DevTools Memory) records when objects were allocated.
Workflow
Section titled “Workflow”- Start recording (enable allocation stacks if offered)
- Perform single suspect action once
- Stop recording
- Zoom timeline bar where heap jumped
- Inspect constructor breakdown for that window
vs heap snapshot
Section titled “vs heap snapshot”| Technique | Best for |
|---|---|
| Snapshot diff | “What accumulated after 50 actions?” |
| Allocation timeline | “What allocated during action #7?” |
Allocation sampling
Section titled “Allocation sampling”Lower overhead — use for longer sessions where instrumentation skews timing.
sequenceDiagram participant You participant DevTools participant Heap You->>DevTools: Start recording You->>Heap: Click leaky button Heap-->>DevTools: Allocation spike You->>DevTools: Stop recording DevTools-->>You: Constructor breakdown
Node equivalent
Section titled “Node equivalent”clinic heapprofiler or Chrome inspector timeline while driving load with autocannon.