heap: Only emit compaction freed bytes when compacting
Avoid biasing the metric with many 0-samples and only emit the sample when the GC was actually compacting memory. Bug: 1056170 Change-Id: I906b7b639fa96b53acc6f3b7235a015f6322123f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2098625Reviewed-by:Omer Katz <omerkatz@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#749598}
Showing
Please register or sign in to comment