зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1011132 - Fix CYCLE_COLLECTOR_TIME_BETWEEN telemetry. r=smaug
This commit is contained in:
Родитель
07a92341f3
Коммит
9173bb89f1
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче