chore(sync): mirror docs from openclaw/openclaw@20bb52e42c

This commit is contained in:
openclaw-docs-sync[bot] 2026-05-02 16:08:59 +00:00
parent 5016cc76b5
commit 3c8d9716d9
2 changed files with 19 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"repository": "openclaw/openclaw",
"sha": "563dca82f4290a8d085be5bea10334545c1c7e8d",
"syncedAt": "2026-05-02T16:01:12.676Z"
"sha": "20bb52e42ca1c468b2a2dbace3e3a840096f5ad6",
"syncedAt": "2026-05-02T16:06:57.004Z"
}

View File

@ -246,6 +246,23 @@ Disable auto-attach while keeping tmux management:
OPENCLAW_GATEWAY_WATCH_ATTACH=0 pnpm gateway:watch
```
Profile watched Gateway CPU time when debugging startup/runtime hotspots:
```bash
pnpm gateway:watch --benchmark
```
The watch wrapper consumes `--benchmark` before invoking the Gateway and writes
one V8 `.cpuprofile` per Gateway child exit under
`.artifacts/gateway-watch-profiles/`. Stop or restart the watched gateway to
flush the current profile, then open it with Chrome DevTools or Speedscope:
```bash
npx speedscope .artifacts/gateway-watch-profiles/*.cpuprofile
```
Use `--benchmark-dir <path>` when you want profiles somewhere else.
The tmux wrapper carries common non-secret runtime selectors such as
`OPENCLAW_PROFILE`, `OPENCLAW_CONFIG_PATH`, `OPENCLAW_STATE_DIR`,
`OPENCLAW_GATEWAY_PORT`, and `OPENCLAW_SKIP_CHANNELS` into the pane. Put