From 75b60a94437c69fbb57f99a2c15254ce4327def6 Mon Sep 17 00:00:00 2001 From: Nataniel Borges Date: Tue, 14 Feb 2023 11:26:39 +0000 Subject: [PATCH] Increase compiler heap size Test: npm run build:kotlin and check if there's no OOM error Bug: 262369733 Change-Id: I98f0f4b2a1457094e6299e8d6eaf707dcaf146e1 --- tools/winscope/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winscope/package.json b/tools/winscope/package.json index 98a0da0cb..74452291d 100644 --- a/tools/winscope/package.json +++ b/tools/winscope/package.json @@ -11,7 +11,7 @@ "deps_graph:check_cycles": "count=$(npx madge --extensions ts,js src/ --circular 2>&1 | awk '/Found.*circular dependencies/ {print $3}'); test ${count:-0} -le 10", "start": "webpack serve --config webpack.config.dev.js --open --hot --port 8080", "start:remote_tool_mock": "webpack serve --config src/test/remote_tool_mock/webpack.config.js --open --hot --port 8081", - "build:kotlin": "rm -rf kotlin_build && npx kotlinc-js -source-map -source-map-embed-sources always -module-kind commonjs -output kotlin_build/flicker.js ../../../platform_testing/libraries/flicker/src/com/android/server/wm/traces/common", + "build:kotlin": "rm -rf kotlin_build && JAVA_OPTS='-Xmx2g -Xms1g' npx kotlinc-js -source-map -source-map-embed-sources always -module-kind commonjs -output kotlin_build/flicker.js ../../../platform_testing/libraries/flicker/src/com/android/server/wm/traces/common", "build:prod": "webpack --config webpack.config.prod.js --progress", "build:remote_tool_mock": "webpack --config src/test/remote_tool_mock/webpack.config.js --progress", "build:all": "npm run build:kotlin && npm run build:prod && npm run build:remote_tool_mock",