Bug 1544651 - Print nursery size in KB for JS_GC_PROFILE_NURSERY r=jonco
☠☠ backed out by b90fc7a65c3d ☠ ☠
authorPaul Bone <pbone@mozilla.com>
Wed, 17 Apr 2019 00:14:07 +0000
changeset 469832 7699a664586021eb0d1cd34d52304270397d213f
parent 469831 64e6baec51501e1ebab151e9d317fa68ea3d7dbd
child 469833 2f61be416873860b79506382e4bfc2e42fe87a97
push id112826
push userbtara@mozilla.com
push dateWed, 17 Apr 2019 21:50:20 +0000
treeherdermozilla-inbound@5d0134101bec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1544651
milestone68.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 1544651 - Print nursery size in KB for JS_GC_PROFILE_NURSERY r=jonco Differential Revision: https://phabricator.services.mozilla.com/D27642
js/src/gc/Nursery.cpp
--- a/js/src/gc/Nursery.cpp
+++ b/js/src/gc/Nursery.cpp
@@ -878,18 +878,19 @@ void js::Nursery::collect(JS::GCReason r
 
   stats().endNurseryCollection(reason);
   gcTracer.traceMinorGCEnd();
   timeInChunkAlloc_ = mozilla::TimeDuration();
 
   if (enableProfiling_ && totalTime >= profileThreshold_) {
     stats().maybePrintProfileHeaders();
 
-    fprintf(stderr, "MinorGC: %20s %5.1f%% %4u        ",
-            JS::ExplainGCReason(reason), promotionRate * 100, maxChunkCount());
+    fprintf(stderr, "MinorGC: %20s %5.1f%% %5lu       ",
+            JS::ExplainGCReason(reason), promotionRate * 100,
+            capacity() / 1024);
     printProfileDurations(profileDurations_);
 
     if (reportTenurings_) {
       for (auto& entry : tenureCounts.entries) {
         if (entry.count >= reportTenurings_) {
           fprintf(stderr, "  %d x ", entry.count);
           AutoSweepObjectGroup sweep(entry.group);
           entry.group->print(sweep);