mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1011132 - Fix CYCLE_COLLECTOR_TIME_BETWEEN telemetry. r=smaug
This commit is contained in:
parent
fc50ce040c
commit
444c3d4cfe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user