diff options
author | 2018-07-06 10:08:34 -0700 | |
---|---|---|
committer | 2018-07-06 10:10:11 -0700 | |
commit | a49c0ff07ed22eed3e18c6ab8544e3fc30647515 (patch) | |
tree | 8b3b1e7837f72e8012a8eada9696b92e63293f56 /src/main/java/com/google/devtools/build/lib/buildeventstream | |
parent | 4ff32da2f79f36fbb1e608830835a31f39772b8a (diff) |
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
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto | 8 |
1 files changed, 8 insertions, 0 deletions
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. |