Chore: add external download stat report

This commit is contained in:
SukkaW
2026-07-19 03:07:21 +08:00
parent d940616076
commit 27c8104fd9
6 changed files with 307 additions and 26 deletions

View File

@@ -27,6 +27,7 @@ import { buildDeprecateFiles } from './build-deprecate-files';
import path from 'node:path';
import { ROOT_DIR } from './constants/dir';
import { isCI } from 'ci-info';
import { printExternalDownloadStats } from './lib/download-stats';
process.on('uncaughtException', (error) => {
console.error('Uncaught exception:', error);
@@ -123,6 +124,7 @@ const buildFinishedLock = path.join(ROOT_DIR, '.BUILD_FINISHED');
printTraceResult(t);
});
printStats(traces);
printExternalDownloadStats();
await Promise.all([
microsoftCdnWorker.end(),