Cloudflare adds production flamegraphs to Workers, exposing where CPU and memory go

The on-demand profiles cover Workers and Durable Objects; Cloudflare's examples show what brief, traffic-dependent captures can reveal and what they miss.

By · Published

Primary source: The Cloudflare Blog

Why it matters

Cloudflare is giving Workers developers code-level visibility into production CPU use and allocations, but captures still depend on live traffic and do not reveal retained memory or rare events outside the profiling window.

Cloudflare adds production flamegraphs to Workers, exposing where CPU and memory go — The on-demand profiles cover Workers and Durable Objects; Cloudflare's examples show what brief, traffic-dependent captures can reveal and what they miss.

Cloudflare added on-demand CPU and allocation profiling for Workers and Durable Objects, giving developers a way to inspect code running in production instead of relying only on logs and aggregate metrics. The feature, described in an October 9th post on the Cloudflare Blog, renders profiles as interactive flamegraphs in the dashboard and lets users download them for analysis with other tools.…

When you purchase through links in our articles, we may earn a small commission. This doesn’t affect our editorial independence.

Reader comments

Conversation for this story loads after sign-in.