JS: Log the amount of memory passed to TypeScript process

This commit is contained in:
Asger Feldthaus
2020-09-15 09:17:42 +01:00
parent c106b6777c
commit d728c3948c

View File

@@ -299,6 +299,8 @@ public class TypeScriptParser {
: getMegabyteCountFromPrefixedEnv(TYPESCRIPT_RAM_SUFFIX, 2000);
int reserveMemoryMb = getMegabyteCountFromPrefixedEnv(TYPESCRIPT_RAM_RESERVE_SUFFIX, 400);
System.out.println("Memory for TypeScript process: " + mainMemoryMb + " MB, and " + reserveMemoryMb + " MB reserve");
File parserWrapper = getParserWrapper();
String debugFlagString = Env.systemEnv().getNonEmpty(TYPESCRIPT_NODE_FLAGS);