Chore: better stat tracking

This commit is contained in:
SukkaW
2026-09-02 15:23:12 +08:00
parent 3c5c5ac4bd
commit 3e03018bbe
28 changed files with 933 additions and 187 deletions

View File

@@ -4,7 +4,7 @@ import * as path from 'node:path';
import { readFileByLine } from './lib/fetch-text-by-line';
import { processLine } from './lib/process-line';
import type { Span } from './trace';
import { task } from './trace';
import { SpanCategory, task } from './trace';
import { SHARED_DESCRIPTION } from './constants/description';
import { fdir as Fdir } from 'fdir';
import { appendArrayInPlace } from 'foxts/append-array-in-place';
@@ -95,7 +95,7 @@ function processFile(span: Span, sourcePath: string) {
}
return [title, descriptions, lines, sgmodulePathname] as const;
});
}, SpanCategory.FsRead);
}
async function transform(parentSpan: Span, sourcePath: string, relativePath: string) {