Skip to content

Commit aaa78ed

Browse files
committed
refactor(perf): format files for oxfmt
1 parent 66a9cc7 commit aaa78ed

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎src/perf/attribution-report.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ import type { PerfSpan, SpanName } from "./index.js";
1717
import { compareSpanStart } from "./index.js";
1818
import type { DumpSpan, PerfDump } from "./dump.js";
1919
import { DUMP_VERSION } from "./dump.js";
20-
import { childrenOf, classifyPerfCategory, spanDurationNs, walkDescendants } from "./rollup.js";
20+
import {
21+
childrenOf,
22+
classifyPerfCategory,
23+
spanDurationNs,
24+
walkDescendants,
25+
} from "./rollup.js";
2126

2227
/** Exclusive wall-time buckets used for session / turn share %. */
2328
export const ATTRIBUTION_CATEGORIES = [

‎src/perf/reactor-spans.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ function callIdFromToolEvent(event: ReactorEmittedEvent): string | undefined {
106106
call?: { id?: unknown };
107107
result?: { callId?: unknown };
108108
};
109-
const id =
110-
event.type === "tool.start" ? data.call?.id : data.result?.callId;
109+
const id = event.type === "tool.start" ? data.call?.id : data.result?.callId;
111110
return typeof id === "string" && id.length > 0 ? id : undefined;
112111
}
113112

‎src/process-handlers.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { describeError, writeCrashReport, type CrashKind } from "./crash/report.js";
1+
import {
2+
describeError,
3+
writeCrashReport,
4+
type CrashKind,
5+
} from "./crash/report.js";
26
import { getActiveRun, markCrashed } from "./session/active-run.js";
37
import { getActiveDisposeHost } from "./session/active-host.js";
48
import { saveCrashState } from "./session/state.js";

0 commit comments

Comments
 (0)