Export used gc when memory profiling enabled.
RELNOTES: The used_heap_size_post_build field in BEP is populated when the --memory_profile flag is set
@@ -861,8 +861,8 @@ message BuildMetrics {
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.
+ // --bep_publish_used_heap_size_post_build or --memory_profile is set, since
+ // it forces a full GC.
int64 used_heap_size_post_build = 1;
// Size of the peak JVM heap size in bytes post GC. Note that this reports 0
