Skip to content

Commit 9dd882d

Browse files
penalosairvinebroqueToriLindsay
committed
Apply suggestions from code review
Co-authored-by: Brendan Irvine-Broque <[email protected]> Co-authored-by: ToriLindsay <[email protected]>
1 parent e3db288 commit 9dd882d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/docs/workers/platform/limits.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ You can measure your Worker's startup time by deploying it to Cloudflare using [
272272

273273
If you are having trouble staying under this limit, consider [profiling using DevTools](/workers/observability/dev-tools/) locally to learn how to optimize your code.
274274

275-
When a Worker deployment fails with a startup time error Wrangler will automatically generate a CPU profile for easy investigation, This can be imported into Chrome DevTools or opened directly in VSCode. Refer to [`wrangler check startup`](/workers/wrangler/commands/#startup) for more details.
275+
When you attempt to deploy a Worker using the [Wrangler CLI](/workers/wrangler/), but your deployment is rejected because your Worker exceeds the [maximum startup time](workers/platform/limits/#worker-startup-time), Wrangler will automatically generate a CPU profile that you can import into Chrome DevTools or open directly in VSCode. You can use this to learn what code in your Worker uses large amounts of CPU time at startup. Refer to [`wrangler check startup`](/workers/wrangler/commands/#startup) for more details.
276276

277277
<Render file="limits_increase" />
278278

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ wrangler telemetry status
19741974

19751975
Generate a CPU profile of your Worker's startup phase.
19761976

1977-
This can be imported into Chrome DevTools or opened 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.
1977+
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.
19781978

19791979
```sh
19801980
wrangler check startup
@@ -1983,6 +1983,6 @@ wrangler check startup
19831983
- `--deploy-args` <Type text="string" /> <MetaInfo text="optional" />
19841984
- To customise the way `wrangler check startup` builds your Worker for analysis, provide the exact arguments you use when deploying your Worker with `wrangler deploy`. For instance, if you deploy your Worker with `wrangler deploy --no-bundle`, you should use `wrangler check startup --deploy-args="--no-bundle"` to profile the startup phase.
19851985
- `--worker-bundle` <Type text="string" /> <MetaInfo text="optional" />
1986-
- If you don't use Wrangler to deploy your Worker, you can use this argument to provide a Worker bundle to analyse. This should be a file path to a serialised multipart upload, with the exact same format as [the API expects](/api/resources/workers/subresources/scripts/methods/update/)
1986+
- If you don't use Wrangler to deploy your Worker, you can use this argument to provide a Worker bundle to analyse. This should be a file path to a serialized multipart upload, with the exact same format as [the API expects](/api/resources/workers/subresources/scripts/methods/update/)
19871987

19881988
<Render file="wrangler-commands/global-flags" product="workers" />

0 commit comments

Comments
 (0)