Introducing on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects
Cloudflare introduced on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects to show exact resource usage locations.
Overview
Cloudflare announced a new feature that allows users to profile the CPU and memory usage of their Workers and Durable Objects. This tool helps developers understand why an application is using more resources than expected by showing the exact function responsible for the usage. LogsTimestamped records that servers and apps write whenever someone signs in, changes a setting, or makes a request and aggregate metrics often fail to provide this level of detail, making profiling a necessary step for optimization. The feature is available on-demand through the Workers ObservabilityHow well a team can see what is happening inside a system from its logs and metrics page or via the command line interface. Users can request a profile for a specific duration and view the results as an interactive flamegraph. Each rectangle in the flamegraph represents a function call, with its width indicating the amount of CPU time or memory used.
Terms in this story
- Logs
- Timestamped records that servers and apps write whenever someone signs in, changes a setting, or makes a request. During an investigation, responders examine security logs to trace when an attacker first logged in and which internal machines they accessed. Security+ objective 4.4 lists the term
- Observability
- How well a team can see what is happening inside a system from its logs and metrics. Engineering and security teams invest in observability tools so that when a cloud service slows down or behaves strangely, they can trace every request across servers. Security+ objective 4.4 lists the term
- production
- The live servers and databases that real customers actually use, as opposed to internal test machines. A bug or breach in a company's production environment directly affects live users and real customer records.
- memory leaks
- A bug where a program fails to free memory it no longer needs, gradually exhausting system memory. An attacker who finds a repeatable memory leak in a network server can send thousands of requests until the server runs out of memory and crashes.
- CLI
- A text-based terminal interface where users type commands instead of clicking buttons in a graphical window. Software teams and administrators manage cloud servers and code repositories through a CLI because text commands are fast and easy to automate in scripts.
- obfuscated
- Scrambling or tangling code on purpose so humans and security scanners have a hard time reading it. Attackers use obfuscation by renaming variables to gibberish, splitting strings, and wrapping scripts in layers of encoding so analysts cannot easily see what the program does. Security+ objective 1.4 lists the term
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Cloudflare website. Cite the article, not this page.
Read the full article on Cloudflare (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Product news
"Introducing on-demand CPU and memory profiling with flamegraphs for Workers and Durable Objects..." Found by reading the article; these exact words are in it - CYBR 101 week 8: networks, ports, DNS and packets
"On-demand CPU and memory profiling for Cloudflare Workers and Durable Objects is now available...." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Skill in monitoring and optimizing system/server performance.
"Understanding why an application is using more resources than expected..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role