Bug 1633625 - Record malloc bytes (from the zone only) r=jonco
authorSteve Fink <sfink@mozilla.com>
Tue, 19 May 2020 21:54:28 +0000
changeset 530901 b0e7c0beb052ebec77bc7c4d3a38538b8313423a
parent 530900 97079b757b57d21c17f3690d13efb625c8079c89
child 530902 d7e1fb886446b09c104098c478aa5b408bb3653f
push id37434
push userabutkovits@mozilla.com
push dateWed, 20 May 2020 10:05:10 +0000
treeherdermozilla-central@005ef1c25992 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1633625
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1633625 - Record malloc bytes (from the zone only) r=jonco Differential Revision: https://phabricator.services.mozilla.com/D74144
js/src/devtools/gc-ubench/perf.js
--- a/js/src/devtools/gc-ubench/perf.js
+++ b/js/src/devtools/gc-ubench/perf.js
@@ -121,16 +121,17 @@ class FrameHistory {
     var t = now - this._frameTimer.start;
     var newIndex = Math.round(t / sampleTime);
     while (sampleIndex < newIndex) {
       sampleIndex++;
       var idx = sampleIndex % this._numSamples;
       this.delays[idx] = delay;
       if (features.trackingSizes) {
         this.gcBytes[idx] = performance.mozMemory.gc.gcBytes;
+        this.mallocBytes[idx] = performance.mozMemory.gc.zone.mallocBytes;
       }
       if (features.showingGCs) {
         this.gcs[idx] = performance.mozMemory.gc.gcNumber;
         this.minorGCs[idx] = performance.mozMemory.gc.minorGCCount;
         this.majorGCs[idx] = performance.mozMemory.gc.majorGCCount;
 
         // Previous versions lacking sliceCount will fall back to
         // assuming any GC activity was a major GC slice, even though