Cloudflare Introduces On-Demand CPU and Memory Profiling for Workers and Durable Objects
Cloudflare has launched on-demand profiling tools that allow developers to generate CPU and memory flame graphs directly from live production workloads inside Workers and Durable Objects.

Cloudflare has introduced on-demand CPU and memory profiling for Cloudflare Workers and Durable Objects, enabling developers to capture performance profiles from live production environments. This feature visualizes execution paths as interactive flame graphs, allowing engineers to pinpoint resource bottlenecks at the function level. By accessing these insights directly, developers can resolve complex performance issues that aggregates and standard logs often fail to capture.
Primary source
Open Cloudflare Blog ↗This article summarizes the source. Check the original for full details and conditions.
Comparison
| Aspect | Before / Alternative | After / This |
|---|---|---|
| Data Source | Synthetic testing or local environment simulations | Live production traffic and real workloads |
| Visualization | Static metrics and text-based logs | Interactive CPU and memory flame graphs |
| Integration | Manual instrumenting of performance measuring code | On-demand execution via dashboard or command-line interface |
| Granularity | High-level request duration and memory limits | Function-level execution time and memory allocation details |
Action Checklist
- Update the Cloudflare CLI tool to the latest version Required to execute profiling commands from the terminal
- Navigate to the Observability tab in the Cloudflare Dashboard Provides the web interface for initiating profiles and viewing flame graphs
- Trigger an on-demand profiling session on the target Worker or Durable Object Use this during active production workloads for accurate metrics
- Analyze the resulting flame graph or download the raw profile file Files can be exported for deep-dive analysis in local profiling tools


