/plushcap/analysis/cloudflare/profiling-your-workers-with-wrangler

Profiling Your Workers with Wrangler

What's this blog post about?

In September 2021, Joshua Nelson and Kabir Sikand discussed how developers have been able to run computationally intensive workloads on the Cloudflare edge network since the launch of Workers Unbound. They introduced Chrome DevTools Integration (Beta) for profiling and monitoring Workers performance. The integration allows users to profile their Cloudflare Workers using chrome://inspect, similar to debugging a Node backend. The feature is demonstrated with an example of optimizing a simple JavaScript program that outputs the first thousand integers separated by a space. Users can analyze the resulting flame graph and understand where most time is spent in their code. The profiler works by gathering stack traces at a sampled rate, providing an approximation of where the code spends its execution time. Cloudflare aims to improve visibility into edge-based computing with this integration and encourages feedback from the community.

Company
Cloudflare

Date published
Sept. 18, 2021

Author(s)
Joshua Nelson, Kabir Sikand

Word count
616

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.