From a49c0ff07ed22eed3e18c6ab8544e3fc30647515 Mon Sep 17 00:00:00 2001 From: tomlu Date: Fri, 6 Jul 2018 10:08:34 -0700 Subject: Publish used_heap_size_post_build metric to BEP. This metric measures the used heap size at the end of the build, after a GC. Because this is expensive it is only collected if a flag is passed. RELNOTES: PiperOrigin-RevId: 203492365 --- .../build/lib/buildeventstream/proto/build_event_stream.proto | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream') diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto index 74bdd0be26..7462b115a8 100644 --- a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto +++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto @@ -625,6 +625,14 @@ message BuildMetrics { int64 actions_created = 1; } ActionSummary action_summary = 1; + + message MemoryMetrics { + // Size of the JVM heap post build in bytes. This is only collected if + // --bep_publish_used_heap_size_post_build is set, + // since it forces a full GC. + int64 used_heap_size_post_build = 1; + } + MemoryMetrics memory_metrics = 2; } // Event providing additional statistics/logs after completion of the build. -- cgit v1.2.3