Skip to content

Commit f1d35a7

Browse files
authored
Clarify that wrangler check startup generates a local CPU profile (#25636)
Add note about CPU profile performance variability. Without this, one might assume that the startup time shown in the profile will match what will happen when deploying to Cloudflare or running on Cloudflare.
1 parent 49aa708 commit f1d35a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,14 @@ Generate a CPU profile of your Worker's startup phase.
18491849

18501850
After you run `wrangler check startup`, you can import the profile into Chrome DevTools or open it directly in VSCode to view a flamegraph of your Worker's startup phase. Additionally, when a Worker deployment fails with a startup time error Wrangler will automatically generate a CPU profile for easy investigation.
18511851

1852+
:::note
1853+
1854+
This command measures performance of your Worker locally, on your own machine — which has a different CPU than when your Worker runs on Cloudflare. This means results can vary widely.
1855+
1856+
You should use the CPU profile that `wrangler check startup` generates in order to understand where time is spent at startup, but you should not expect the overall startup time in the profile to match exactly what your Worker's startup time will be when deploying to Cloudflare.
1857+
1858+
:::
1859+
18521860
```sh
18531861
wrangler check startup
18541862
```

0 commit comments

Comments
 (0)