Skip to content

Commit 1652470

Browse files
committed
Add logs for timer
1 parent 20e9014 commit 1652470

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cli/src/splitRunner/splitRunner.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class SplitRunner {
1414
}
1515

1616
async run(): Promise<File[]> {
17-
console.time("\nSplitting");
17+
console.info(`Splitting group: ${this.group.name}`);
18+
console.time("Total Splitting Time");
1819

1920
const worker = new Worker(path.resolve(__dirname, "worker.js"), {
2021
workerData: {
@@ -26,7 +27,7 @@ class SplitRunner {
2627

2728
return new Promise<File[]>((resolve, reject) => {
2829
worker.on("message", (updatedFiles: File[]) => {
29-
console.timeEnd("Splitting");
30+
console.timeEnd("Total Splitting Time");
3031
resolve(updatedFiles);
3132
});
3233

0 commit comments

Comments
 (0)