
Key points
- Cloudflare launched on-demand CPU and memory profiling for Workers and Durable Objects.
- The feature generates interactive flamegraphs directly within production environments.
- Developers can use these tools to track down memory leaks and performance bottlenecks.
Cloudflare has released a new profiling capability for its edge computing platform. The company announced on-demand CPU and memory profiling for Workers and Durable Objects. According to the vendor's blog, this feature allows developers to generate interactive flamegraphs directly in production. These visualizations help engineers quickly identify memory leaks and performance bottlenecks without needing to reproduce issues locally.
In plain English
Profiling is a diagnostic technique that measures how much time and memory a program uses. Cloudflare now lets users trigger this process on live servers. The tool creates flamegraphs, which are visual charts showing which functions consume the most resources. According to Cloudflare, this helps teams find the root cause of slowness or high memory usage. Users can see exactly where their code spends its time in real-time production traffic.
The background
Developers often struggle to debug performance issues that only appear under real-world load. Local testing rarely replicates the complexity of production environments. Previously, diagnosing these issues required complex logging or offline analysis. Cloudflare addressed this gap by integrating profiling directly into the Workers runtime. The new feature supports both CPU and memory analysis for Workers and Durable Objects. This allows for immediate visibility into resource consumption patterns during actual user requests.
What changes now
Teams can now initiate profiling sessions on demand for their live applications. According to the announcement, the generated flamegraphs are interactive. This means users can drill down into specific function calls to understand resource allocation. The feature is designed to speed up the debugging process for memory leaks. It also helps identify inefficient code paths that cause latency. No external tools or complex setup are required to access these diagnostics.
What to do and how to stay safe: Cloudflare
- Review current monitoring dashboards to identify any unexplained latency or memory spikes in Workers.
- Test the new on-demand profiling feature on non-critical production endpoints to familiarize teams with the interface.
- Establish a baseline of normal CPU and memory usage before investigating potential performance regressions.
- Document findings from flamegraph analysis to create a knowledge base for common bottleneck patterns.
Step-by-step guide: Have I Been Pwned FAQs: Data Scope, API Safety, and False Positives
General security guidance from the Vuln Post newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
What new feature did Cloudflare announce for Workers?
Cloudflare introduced on-demand CPU and memory profiling that generates interactive flamegraphs for Workers and Durable Objects.
Can this profiling be done in production?
Yes, according to the vendor, users can generate these flamegraphs directly in production environments.
What are these tools used for?
They help developers quickly track down memory leaks and performance bottlenecks in their applications.



