зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1340134 - Use idleDispatch for gathering memory statistics. r=chutten
This defers the |gatherMemory| telemetry measurement until we're idle. This measurement should no longer affect CC times. MozReview-Commit-ID: DMtAo3K59FV
This commit is contained in:
Родитель
bef683e53b
Коммит
29aa431132
|
@ -1974,7 +1974,13 @@ var Impl = {
|
|||
if (!gLastMemoryPoll
|
||||
|| (TELEMETRY_INTERVAL <= now - gLastMemoryPoll)) {
|
||||
gLastMemoryPoll = now;
|
||||
this.gatherMemory();
|
||||
|
||||
this._log.trace("Dispatching idle gatherMemory task");
|
||||
Services.tm.mainThread.idleDispatch(() => {
|
||||
this._log.trace("Running idle gatherMemory task");
|
||||
this.gatherMemory();
|
||||
return true;
|
||||
});
|
||||
}
|
||||
break;
|
||||
case "xul-window-visible":
|
||||
|
|
Загрузка…
Ссылка в новой задаче