diff options
author | 2018-02-28 09:46:06 -0800 | |
---|---|---|
committer | 2018-02-28 09:48:17 -0800 | |
commit | dfa0b12a44c6cd434de612db2c6b5573ef4e64bb (patch) | |
tree | f601c579874ebcbeee6881c1e274b194f6ac9550 /src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java | |
parent | 1fe23126d4a30d49b7668b235ea1bfb2e2c8a39e (diff) |
Add functionality to MemoryProfiler to do multiple garbage collections at the end of the build in an effort to get an accurate measurement of used memory.
PiperOrigin-RevId: 187337487
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java index df1692fdd5..6932d9ea18 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java @@ -407,6 +407,8 @@ public final class BlazeRuntime { if (options.memoryProfilePath != null) { Path memoryProfilePath = env.getWorkingDirectory().getRelative(options.memoryProfilePath); + MemoryProfiler.instance() + .setStableMemoryParameters(options.memoryProfileStableHeapParameters); try { MemoryProfiler.instance().start(memoryProfilePath.getOutputStream()); } catch (IOException e) { |