cloudflare / cloudflare/workers-sdk

🐛 BUG: CPU profiling report is vague and doesn't link to source code

Open
#7,813 0 comments 0 reactions 1 assignee Claimed by @mikenomitch View on GitHub
Dominant language
TypeScript
Stars
4.5k
Forks
1.5k
Avg merge
3d 8h
Merged PRs (30d)
187

Description

### Which Cloudflare product(s) does this pertain to?

Wrangler

### What versions are you using?

3.103.2 [Wrangler], 20.17.0 [Node]

### What operating system and version are you using?

Windows 11

### Please provide a link to a minimal reproduction

_No response_

### Describe the Bug

I basically followed the example here
https://developers.cloudflare.com/workers/observability/dev-tools/cpu-usage/#an-example-profile

create an index.js file
paste the code inside then run `wrangler dev index.js`
clicked "record", ran the worker in another tab couple time and stopped recording

The results I got were different from the docs I followed above.
There was no mention of the functions `addNumbers` and `moreAddition`, it all looks anonymous so I can't tell what part of the code that is.

The screenshots added to the linked guide above also seem to include outdated chrome devtools interface, ex: Profiler tab is no longer there.

![Image](https://github.com/user-attachments/assets/0cd05a5a-626d-425e-b4de-67e13d2f0396)

### Please provide any relevant error logs

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.