Bug 1011132 - Fix CYCLE_COLLECTOR_TIME_BETWEEN telemetry. r=smaug

This commit is contained in:
Andrew McCreight 2014-05-16 08:09:16 -07:00
parent fc50ce040c
commit 444c3d4cfe

View File

@ -2078,7 +2078,8 @@ nsJSContext::EndCycleCollectionCallback(CycleCollectorResults &aResults)
Telemetry::Accumulate(Telemetry::CYCLE_COLLECTOR_MAX_PAUSE, gCCStats.mMaxSliceTime);
if (!sLastCCEndTime.IsNull()) {
uint32_t timeBetween = TimeBetween(sLastCCEndTime, gCCStats.mBeginTime);
// TimeBetween returns milliseconds, but we want to report seconds.
uint32_t timeBetween = TimeBetween(sLastCCEndTime, gCCStats.mBeginTime) / 1000;
Telemetry::Accumulate(Telemetry::CYCLE_COLLECTOR_TIME_BETWEEN, timeBetween);
}
sLastCCEndTime = endCCTimeStamp;