Perf: minor improvements here and there

This commit is contained in:
SukkaW
2025-01-23 22:30:04 +08:00
parent cf58e215f5
commit fe06774a19
5 changed files with 78 additions and 46 deletions

View File

@@ -120,7 +120,7 @@ export function task(importMetaMain: boolean, importMetaPath: string) {
dummySpan.traceChildAsync('dummy', (childSpan) => fn(childSpan, onCleanup)).finally(() => {
dummySpan.stop();
printTraceResult(dummySpan.traceResult);
whyIsNodeRunning();
process.nextTick(whyIsNodeRunning);
});
}