Skip to content
Tuesday, October 13, 2026AboutContactRSS
Data Breaches

Cloudflare Launches On-Demand CPU and Memory Profiling for Workers

Cloudflare has released on-demand profiling tools for Workers and Durable Objects, enabling developers to generate flamegraphs in production to identify performance bottlenecks.

Illustration: A sleek black terminal unit sits on a clean white desk.
AI-generated illustration: Threat Times

Key points

  • Cloudflare introduced on-demand CPU and memory profiling for Workers and Durable Objects.
  • The feature allows for the generation of interactive flamegraphs directly within production environments.
  • The tool is designed to help developers quickly locate memory leaks and performance bottlenecks.

Cloudflare has made on-demand CPU and memory profiling available for its Workers and Durable Objects platforms. This new capability allows developers to generate interactive flamegraphs directly in production environments to diagnose performance issues.

The feature addresses the challenge of identifying resource consumption in serverless environments. According to Cloudflare, the profiling tools enable users to track down memory leaks and performance bottlenecks with greater speed and precision. By providing visibility into CPU and memory usage, the platform aims to streamline the debugging process for complex applications running on its edge network.

Context and Background

Profiling is a critical step in optimizing application performance, particularly for serverless architectures where resource limits are strict. Traditionally, profiling often required local reproduction of issues or invasive instrumentation that could alter application behavior. Cloudflare’s announcement highlights a shift toward non-intrusive, on-demand analysis.

The introduction of flamegraphs provides a visual representation of stack traces, allowing developers to see exactly which functions are consuming the most resources. This visual aid is particularly useful for identifying inefficient code paths that may not be apparent through standard logging or metrics. The ability to run these profiles in production ensures that the data reflects real-world traffic patterns and user interactions, rather than simulated loads.

Who Is Affected

Developers and engineering teams using Cloudflare Workers and Durable Objects are the primary beneficiaries of this update. These platforms are widely used for building serverless applications, APIs, and backend services that run on Cloudflare’s global network. Teams managing high-traffic applications or those experiencing unexplained latency or memory growth will find the profiling tools particularly relevant.

Operations and DevOps professionals responsible for maintaining application stability and performance will also utilize these tools. By providing direct access to performance data, the feature reduces the dependency on third-party monitoring solutions for deep-level code analysis. It empowers engineering teams to resolve issues more independently and efficiently.

What should you do?

Developers should review their current monitoring and debugging workflows to determine if on-demand profiling can replace or augment existing tools. It is advisable to test the profiling feature in staging environments before using it in production to understand the overhead and data granularity. Teams should also establish protocols for when to trigger profiling sessions to avoid unnecessary resource consumption during peak traffic.

What to do and how to stay safe: Cloudflare

  • Review current application performance metrics to identify potential candidates for profiling, such as endpoints with high latency or memory usage.
  • Test the on-demand profiling feature in a non-production environment to familiarize your team with the interface and flamegraph interpretation.
  • Establish clear guidelines for when and how to trigger profiling sessions in production to minimize impact on live users.
  • Monitor the output of flamegraphs to identify specific functions or modules causing bottlenecks and prioritize code optimization efforts.

General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

What is the main benefit of Cloudflare's new profiling feature?

It allows developers to generate interactive flamegraphs in production to quickly identify memory leaks and performance bottlenecks in Workers and Durable Objects.

Does this feature work for all Cloudflare products?

No, the on-demand CPU and memory profiling is specifically available for Cloudflare Workers and Durable Objects.

Can this profiling be done in a production environment?

Yes, the feature is designed to generate flamegraphs directly in production environments.

Sources

  1. Cloudflare
CloudflareWorkersDurable ObjectsCPU profilingmemory profiling
Related articles