Skip to content

Commit 5abe782

Browse files
committed
log memory usage after each mangling step
microsoft#202720 (comment)
1 parent 6eb3213 commit 5abe782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/lib/mangle/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ export class Mangler {
721721
result.set(item.fileName, { out: newFullText, sourceMap: generator?.toString() });
722722
}
723723

724-
this.log(`Done: ${savedBytes / 1000}kb saved`);
724+
this.log(`Done: ${savedBytes / 1000}kb saved, memory-usage: ${JSON.stringify(process.memoryUsage())}`);
725725
return result;
726726
}
727727
}

0 commit comments

Comments
 (0)