ci: polish source performance report · openclaw/openclaw@d3b6c80
steipete
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -160,10 +160,17 @@ function buildCliRows(cli) {
|
160 | 160 | formatMs(commandCase.summary?.durationMs?.p50), |
161 | 161 | formatMs(commandCase.summary?.durationMs?.p95), |
162 | 162 | formatMb(commandCase.summary?.maxRssMb?.p95), |
163 | | -commandCase.summary?.exitSummary ?? "n/a", |
| 163 | +formatExitSummary(commandCase.summary?.exitSummary), |
164 | 164 | ]); |
165 | 165 | } |
166 | 166 | |
| 167 | +function formatExitSummary(value) { |
| 168 | +if (typeof value !== "string" || !value) { |
| 169 | +return "n/a"; |
| 170 | +} |
| 171 | +return value.replaceAll(/\b(code:(?:null|-?\d+)|signal:[^,\s]+)x(\d+)\b/g, "$1 x$2"); |
| 172 | +} |
| 173 | + |
167 | 174 | function buildObservationRows(summary) { |
168 | 175 | return (summary?.observations ?? []).map((observation) => [ |
169 | 176 | observation.kind ?? "unknown", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。