# Introducing on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects

DevFeed: [Introducing on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects](<https://devfeed.tech/articles/introducing-on-demand-cpu-and-memory-profiling-with-flamegraphs-for-workers-and-durable-objects-83953.md>)

Original publisher: [Read original article](<https://blog.cloudflare.com/workers-on-demand-profiling/>)

Author: Dominik Picheta

Published: 2026-10-09T13:00:00Z

Content type: release

Language: en

Sources: [Cloudflare Blog](<https://devfeed.tech/sources/cloudflare-blog.md>)

Topics: [Cloudflare Workers](<https://devfeed.tech/topics/cloudflare-workers.md>), [Visual Studio Profiler](<https://devfeed.tech/topics/visual-studio-profiler.md>), [perfetto](<https://devfeed.tech/topics/perfetto.md>)

Tags: [bottlenecks](<https://devfeed.tech/tags/bottlenecks.md>), [cloudflare-workers](<https://devfeed.tech/tags/cloudflare-workers.md>), [developers](<https://devfeed.tech/tags/developers.md>), [memory-leaks](<https://devfeed.tech/tags/memory-leaks.md>), [observability](<https://devfeed.tech/tags/observability.md>), [performance](<https://devfeed.tech/tags/performance.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [workers](<https://devfeed.tech/tags/workers.md>)

## AI overview

Cloudflare has added on-demand CPU and memory profiling for Workers and Durable Objects. Developers can capture profiles from production, inspect interactive flamegraphs, and download profile files for analysis. Examples show profiling uncovering repeated JSON traversal and partially disabled Prometheus instrumentation, leading to CPU and memory improvements. The feature requires a deployed Worker with enough traffic, and memory profiles only capture allocations made during the profiling window.

## Source excerpt

On-demand CPU and memory profiling for Cloudflare Workers and Durable Objects is now available. Now you can generate interactive flamegraphs directly in production to quickly track down memory leaks and performance bottlenecks.