mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 10:34:35 +08:00
Chore: event loop wall build time tracking
This commit is contained in:
@@ -49,8 +49,7 @@ export function makeSpan(rawSpan: RawSpan): Span {
|
||||
}
|
||||
traceResult.end = time ?? performance.now();
|
||||
if (rawSpan.eluStart) {
|
||||
const elu = performance.eventLoopUtilization(rawSpan.eluStart);
|
||||
traceResult.elu = { idle: elu.idle, active: elu.active };
|
||||
traceResult.loopIdle = { atStart: rawSpan.eluStart.idle, atEnd: performance.eventLoopUtilization().idle };
|
||||
}
|
||||
rawSpan.status = SPAN_STATUS_END;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user