зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1296998 - Fix Wmaybe-uninitialized warning in nsJSEnvironment.cpp. r=smaug
MozReview-Commit-ID: J21IuAo8Udu
This commit is contained in:
Родитель
2b403c0acf
Коммит
1b45836b44
|
@ -1590,11 +1590,6 @@ nsJSContext::EndCycleCollectionCallback(CycleCollectorResults &aResults)
|
|||
NS_GC_DELAY - std::min(ccNowDuration, kMaxICCDuration));
|
||||
}
|
||||
|
||||
PRTime endCCTime;
|
||||
if (sPostGCEventsToObserver) {
|
||||
endCCTime = PR_Now();
|
||||
}
|
||||
|
||||
// Log information about the CC via telemetry, JSON and the console.
|
||||
Telemetry::Accumulate(Telemetry::CYCLE_COLLECTOR_FINISH_IGC, gCCStats.mAnyLockedOut);
|
||||
Telemetry::Accumulate(Telemetry::CYCLE_COLLECTOR_SYNC_SKIPPABLE, gCCStats.mRanSyncForgetSkippable);
|
||||
|
@ -1687,7 +1682,8 @@ nsJSContext::EndCycleCollectionCallback(CycleCollectorResults &aResults)
|
|||
u"\"removed\": %lu } "
|
||||
u"}");
|
||||
nsString json;
|
||||
json.Adopt(nsTextFormatter::smprintf(kJSONFmt.get(), endCCTime, ccNowDuration,
|
||||
|
||||
json.Adopt(nsTextFormatter::smprintf(kJSONFmt.get(), PR_Now(), ccNowDuration,
|
||||
gCCStats.mMaxSliceTime,
|
||||
gCCStats.mTotalSliceTime,
|
||||
gCCStats.mMaxGCDuration,
|
||||
|
|
Загрузка…
Ссылка в новой задаче