mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:10:42 +00:00
ci: polish source performance report
This commit is contained in:
@@ -160,10 +160,17 @@ function buildCliRows(cli) {
|
||||
formatMs(commandCase.summary?.durationMs?.p50),
|
||||
formatMs(commandCase.summary?.durationMs?.p95),
|
||||
formatMb(commandCase.summary?.maxRssMb?.p95),
|
||||
commandCase.summary?.exitSummary ?? "n/a",
|
||||
formatExitSummary(commandCase.summary?.exitSummary),
|
||||
]);
|
||||
}
|
||||
|
||||
function formatExitSummary(value) {
|
||||
if (typeof value !== "string" || !value) {
|
||||
return "n/a";
|
||||
}
|
||||
return value.replaceAll(/\b(code:(?:null|-?\d+)|signal:[^,\s]+)x(\d+)\b/g, "$1 x$2");
|
||||
}
|
||||
|
||||
function buildObservationRows(summary) {
|
||||
return (summary?.observations ?? []).map((observation) => [
|
||||
observation.kind ?? "unknown",
|
||||
|
||||
Reference in New Issue
Block a user