Introducing on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects
Flamegraphs for production Workers, on demand: pick a version and a duration, get a CPU or heap profile sampled every 1ms without spinning up a new isolate. Cloudflare dogfooded it first — a heap profile caught Prometheus instrumentation they thought was disabled eating ~66.7% of allocations, and removing it took P999 memory from 133 MB to 118 MB, back under the 128 MB limit. Continuous profiling is still in development.