From 1652470f83cda5a35154fd0ef537b130d6d0ac99 Mon Sep 17 00:00:00 2001 From: Erfan Besharat Date: Sun, 8 Dec 2024 17:44:42 +0100 Subject: [PATCH] Add logs for timer --- packages/cli/src/splitRunner/splitRunner.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/splitRunner/splitRunner.ts b/packages/cli/src/splitRunner/splitRunner.ts index d97bc0d..5a1f26b 100644 --- a/packages/cli/src/splitRunner/splitRunner.ts +++ b/packages/cli/src/splitRunner/splitRunner.ts @@ -14,7 +14,8 @@ class SplitRunner { } async run(): Promise { - console.time("\nSplitting"); + console.info(`Splitting group: ${this.group.name}`); + console.time("Total Splitting Time"); const worker = new Worker(path.resolve(__dirname, "worker.js"), { workerData: { @@ -26,7 +27,7 @@ class SplitRunner { return new Promise((resolve, reject) => { worker.on("message", (updatedFiles: File[]) => { - console.timeEnd("Splitting"); + console.timeEnd("Total Splitting Time"); resolve(updatedFiles); });