Introducing on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects
Positions the feature as a timely, superior alternative to logs and aggregate metrics — emphasizing immediacy, interactivity, and production relevance.
View original on blog.cloudflare.comOverview
Cloudflare launched on-demand CPU and memory profiling with interactive flamegraphs for Workers and Durable Objects, enabling developers to diagnose performance bottlenecks and memory leaks directly in production environments.
TL;DR
- New profiling tool allows real-time, production-grade CPU and memory analysis for Cloudflare Workers and Durable Objects
- Interactive flamegraphs and table views help identify resource-heavy functions, including recursive inefficiencies
- Requires traffic volume and source maps (for TypeScript) to yield actionable insights
Key Stats
50 seconds
default profiling duration in example
Duration used in internal R2 binding optimization case study
Questions Answered
Narrative Frame
innovation framing
Spin Score
45%
Emphasizes utility and developer empowerment while minimizing technical constraints (e.g., traffic dependency, source map requirement, lack of historical comparison or baseline metrics), and omits discussion of profiling-induced latency, cold-start interference, or data retention policies.
What the story wants you to believe
That Cloudflare Workers now offer production-grade, actionable observability indistinguishable from traditional backend environments.
What it makes harder to question
Whether the profiling capability meaningfully closes the observability gap for edge compute — especially given its traffic dependency and lack of historical context.
How the spin works
Combines concrete implementation details (CLI commands, UI paths) with a compelling internal success story (R2 optimization) to lend authenticity, while using phrases like 'the best way to understand your application is to profile it in production' to imply methodological superiority over alternatives — even though the article offers no comparative evaluation or validation against those alternatives.
Who Benefits If This Frame Spreads
Cloudflare Developer Relations team
Strengthens narrative of Workers as production-ready, observable, and enterprise-viable
Demonstrates mature observability capabilities that reduce perceived operational risk for high-traffic customers
The Frame
Cloudflare as an enabler of precise, real-world performance engineering for edge applications.
Missing Context
- Profiling overhead impact on Worker execution SLAs
- Data residency or compliance implications of profile capture
- Whether profiles include third-party module call stacks or are limited to user code
SpinGraph
How this belief gets built
Claim → Frame → Beneficiary → Gap → AI Risk
The post presents a useful new debugging tool not as a narrow improvement but as evidence that Workers have matured into a fully observable, production-equivalent runtime — subtly elevating the platform's technical stature without claiming formal equivalence.
- Claim
You can generate interactive flamegraphs directly in production to quickly
You can generate interactive flamegraphs directly in production to quickly track down memory leaks and performance bottlenecks.
- Frame
Upside framed as transformative
Cloudflare as an enabler of precise, real-world performance engineering for edge applications.
- Beneficiary
Strengthens narrative of Workers as production-ready, observable, and enterprise-viable
Cloudflare Developer Relations team — Strengthens narrative of Workers as production-ready, observable, and enterprise-viable
- Gap
Profiling overhead impact on Worker execution SLAs
- AI Risk
AI may repeat the headline as fact
Cloudflare added flamegraph-based CPU and memory profiling for Workers to help developers find performance bottlenecks in production.
Claim Ledger
| Claim | Evidence | Verification | Risk | Evidence Gaps |
|---|---|---|---|---|
| You can generate interactive flamegraphs directly in production to quickly track down memory leaks and performance bottlenecks. | Step-by-step CLI and dashboard instructions, annotated flamegraph image, and internal R2 optimization example showing function-level CPU attribution. | Claim Present in Source | Low | Independent benchmark comparing profiling accuracy against established tools like perf or pprof; Latency measurements of profiling capture under load; Documentation of error rates when profiling low-traffic Workers |
You can generate interactive flamegraphs directly in production to quickly track down memory leaks and performance bottlenecks.
evidence: Step-by-step CLI and dashboard instructions, annotated flamegraph image, and internal R2 optimization example showing function-level CPU attribution.
"From the Workers Observability page, you can now request an on-demand CPU or memory profile of an active Worker, inspect it as an interactive flamegraph, and download the profile file for further analysis."
Evidence Gaps
- Independent benchmark comparing profiling accuracy against established tools like perf or pprof
- Latency measurements of profiling capture under load
- Documentation of error rates when profiling low-traffic Workers
Language Heatmap
Loaded terms that carry the frame beyond the facts.
Introducing on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects
Carries emotional weight beyond the underlying fact.
Carries emotional weight beyond the underlying fact.
Carries emotional weight beyond the underlying fact.
Carries emotional weight beyond the underlying fact.
Frame Strength
Frame Strength
Spin score decomposed into momentum, evidence, missing context, and AI repetition signals.
Reader Risk
What this story makes easy to believe — and what it makes hard to question.
Source Role & Intent
Cloudflare Blog · Company Blog
Counter-Frames
Brand Frame
Cloudflare as an enabler of precise, real-world performance engineering for edge applications.
Media / Reader Counter-Frame
May be framed as incremental tooling rather than transformative — noting similar capabilities exist in Vercel, Deno Deploy, and open-source eBPF toolchains.
Regulatory Counter-Frame
Not applicable — no regulatory claims made.
AI Summary Frame
May conflate 'on-demand profiling' with continuous monitoring or auto-remediation, implying intelligence the feature lacks.
Missing Voices
Questions Not Answered
- What latency or overhead does profiling impose on live Workers during capture?
- Are profiles sampled or full-stack? What sampling rate or fidelity guarantees apply?
- Has this been validated against known memory leak benchmarks or third-party profiling tools?
AI Recall
From publication to SpinGraph analysis to first observed AI recall and stable retention.
What AI Will Probably Repeat
"Cloudflare added flamegraph-based CPU and memory profiling for Workers to help developers find performance bottlenecks in production."
Concern: AI may omit critical qualifiers: traffic dependency, source map requirement for TypeScript, or absence of historical/profile comparison features.
-
Published
Oct 9, 2026
-
Ingested
Oct 9, 2026
-
SpinGraph Created
Oct 10, 2026
-
First Observed AI Recall
Pending
Monitoring scheduled
-
Stable Recall
—
Awaiting retention signal
Recall Check Log
No checks yet — recall tracking is opt-in per story.
─── GEOGrow AI Recall Layer ───
AI Recall Tracking
Monitoring scheduled. No LLM recall detected yet.
This story has not yet appeared in tested AI answers. Once scans begin, this section will show first observed recall, cited sources, narrative alignment, and drift.
node_id=sts_introducing_on_demand_cpu_and_memory_profiling_w
Ask AI about this story
Opens with the SpinGraph .md URL and structured context — one click, prompt included.
More from Cloudflare Blog
View all →Markdown (.md) · JSON-LD schema (.json) · Machine-readable for AI & GEO