Bug 765909 - Report slice when time as slice start, not end; r=billm
authorTerrence Cole <terrence@mozilla.com>
Mon, 18 Jun 2012 18:15:06 -0700
changeset 101784 e7e1c12cc88cd16341165ccafbc3486dc4a902b0
parent 101783 50a969a82733e75577d79fcb4df5a2cb889d9ddf
child 101785 2168e72ab8d323e9ff8f6f6416fc57ba6fc9783a
push id1316
push userakeybl@mozilla.com
push dateMon, 27 Aug 2012 22:37:00 +0000
treeherdermozilla-beta@db4b09302ee2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs765909
milestone16.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 765909 - Report slice when time as slice start, not end; r=billm
js/src/gc/Statistics.cpp
--- a/js/src/gc/Statistics.cpp
+++ b/js/src/gc/Statistics.cpp
@@ -353,17 +353,17 @@ Statistics::formatData(StatisticsSeriali
                 continue;
             }
 
             ss.beginObject(NULL);
             ss.extra("    ");
             ss.appendNumber("Slice", "%d", "", i);
             ss.appendDecimal("Pause", "", t(width));
             ss.extra(" (");
-            ss.appendDecimal("When", "ms", t(slices[i].end - slices[0].start));
+            ss.appendDecimal("When", "ms", t(slices[i].start - slices[0].start));
             ss.appendString("Reason", ExplainReason(slices[i].reason));
             if (slices[i].resetReason)
                 ss.appendString("Reset", slices[i].resetReason);
             ss.extra("): ");
             FormatPhaseTimes(ss, "Times", slices[i].phaseTimes);
             if (ss.isJSON())
                 FormatPhaseFaults(ss, "Page Faults", slices[i].phaseFaults);
             ss.endLine();