← All stories
● Covered by 1 source · 1 reportMedium impact1 positive

Cloudflare Workers and Durable Objects now support on-demand CPU and memory profiling

🔄 Updated 2h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • On-demand CPU and memory profiling is available for Workers and Durable Objects.
  • Profiles are viewable as interactive flamegraphs.
  • Profiling can be initiated via CLI or Cloudflare Dashboard.
  • Helps identify resource-intensive functions in production.

New Profiling Capabilities for Cloudflare Workers

Cloudflare has announced the release of on-demand CPU and memory profiling for its Workers and Durable Objects. This new functionality provides developers with tools to understand and optimize resource usage within their applications running on the Cloudflare edge network.

Identifying Resource Consumption

The profiling feature allows users to pinpoint specific functions that are consuming CPU cycles or allocating memory. This level of detail goes beyond traditional logs and aggregate metrics, offering a clearer picture of application performance bottlenecks. The profiles are presented as interactive flamegraphs, where the width of each rectangle indicates the resource usage of a function.

Accessing the Profiler

Developers can access the profiling tools through two main interfaces: the Cloudflare CLI or the Cloudflare Dashboard. Using the CLI involves running a command with specified worker ID, duration, and profile type. Through the dashboard, users navigate to the Observability tab of their Worker, select 'Flamegraph', and initiate a profile capture. The profiler requires sufficient traffic on the Worker to generate meaningful data.

Impact on Optimization

This profiling method is designed to provide insights into real-world application behavior, enabling developers to optimize their code directly in production environments. By visualizing resource usage, developers can identify and address inefficiencies, leading to more performant and cost-effective Workers and Durable Objects.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~5 min · 3 stories · Oct 09

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Cloudflare has introduced on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects. This feature allows developers to identify exact functions consuming CPU or allocating memory, improving resource optimization in production environments.