mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 723157 - Call forgetSkippable more often, r=mccr8
--HG-- extra : rebase_source : fdbca61ec4ef1d5898539f24248dd19f2767103e
This commit is contained in:
parent
a569987a57
commit
5033c99fcd
@ -3381,12 +3381,13 @@ CCTimerFired(nsITimer *aTimer, void *aClosure)
|
||||
// Just few new suspected objects, return early.
|
||||
return;
|
||||
}
|
||||
sPreviousSuspectedCount = suspected;
|
||||
|
||||
PRTime startTime;
|
||||
if (sPostGCEventsToConsole) {
|
||||
startTime = PR_Now();
|
||||
}
|
||||
nsCycleCollector_forgetSkippable();
|
||||
sPreviousSuspectedCount = nsCycleCollector_suspectedCount();
|
||||
sCleanupSinceLastGC = true;
|
||||
if (sPostGCEventsToConsole) {
|
||||
PRTime delta = PR_Now() - startTime;
|
||||
@ -3397,7 +3398,7 @@ CCTimerFired(nsITimer *aTimer, void *aClosure)
|
||||
sMaxForgetSkippableTime = delta;
|
||||
}
|
||||
sTotalForgetSkippableTime += delta;
|
||||
sRemovedPurples += (suspected - nsCycleCollector_suspectedCount());
|
||||
sRemovedPurples += (suspected - sPreviousSuspectedCount);
|
||||
++sForgetSkippableBeforeCC;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user