Node.js

Embed
Preview of the card
<a href="https://forumulate.com/p/watchtower/docs/profilers-node"><img src="https://forumulate.com/api/public/orgs/watchtower/spaces/docs/pages/9028882b-f570-4294-be02-f875cbaeb4b3/social-card.svg?v=3e7ae33eec8b" alt="Node.js" width="600" height="315"></a>

Built-in V8 CPU profiler. Sample types: cpu only. Span links: no. Heap profiles from --heap-prof are not supported.

node --cpu-prof --cpu-prof-dir=./prof app.js
wtctl profile convert-cpuprofile prof/CPU.123.cpuprofile > cpu.folded
wtctl profile upload cpu.folded --service checkout --version 1.4.2 --format folded

convert-cpuprofile folds the V8 .cpuprofile call tree into collapsed stacks, one count per sample (not weighted by time deltas).

Updated