perf(gateway): add startup CPU profile option

This commit is contained in:
Peter Steinberger
2026-05-03 13:30:23 +01:00
parent 0b1fbeabed
commit 706132c655
3 changed files with 42 additions and 18 deletions

View File

@@ -16,6 +16,7 @@ describe("gateway startup benchmark script", () => {
expect(result.status).toBe(0);
expect(result.stdout).toContain("OpenClaw Gateway startup benchmark");
expect(result.stdout).toContain("--case <id>");
expect(result.stdout).toContain("--cpu-prof-dir <dir>");
expect(result.stdout).toContain("default (gateway default)");
expect(result.stdout).not.toContain("[gateway-startup-bench]");
expect(result.stderr).toBe("");