Published 2026-10-09. Production on-demand CPU and memory profiles with interactive flamegraphs β from the dashboard (Observability β Flamegraph) or cf workers versions profile. You must pick a version that already has enough traffic; Cloudflare does not spin a new isolate just for profiling.
Design details (from the primary):
- Isolate lock is held only for profiler start and stop; during capture the lock is released so requests continue.
- Samples are 1 ms V8 CPU samples; memory profiles cover the live heap.
- Durable Object profiling routes by name to the live primary actor (not a random replica).
- Real fixes from the profiles: a recursive
JSON.stringifyreplacer that walked the tree while stringify already walked it β 2.7Γ faster after the fix; a βdisabledβ Prometheus path that still allocated β P999 heap 133 β 118 MB under a 128 MB limit (path removed). - Continuous profiling is on the roadmap.