Bug 1011132 - Fix CYCLE_COLLECTOR_TIME_BETWEEN telemetry. r=smaug

This commit is contained in:
Andrew McCreight 2014-05-16 10:11:40 -07:00
Родитель 07a92341f3
Коммит 9173bb89f1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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;