зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1334432 - Improve GC/CC logging in multi-e10s, r=mccr8
--HG-- extra : rebase_source : ed3294efccdcd35f7da5f1b4c59a7d8a30fc491f
This commit is contained in:
Родитель
35ad8bf748
Коммит
9cd6e244e9
|
@ -1621,11 +1621,11 @@ nsJSContext::EndCycleCollectionCallback(CycleCollectorResults &aResults)
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_NAMED_MULTILINE_LITERAL_STRING(kFmt,
|
NS_NAMED_MULTILINE_LITERAL_STRING(kFmt,
|
||||||
u"CC(T+%.1f)[%s] max pause: %lums, total time: %lums, slices: %lu, suspected: %lu, visited: %lu RCed and %lu%s GCed, collected: %lu RCed and %lu GCed (%lu|%lu|%lu waiting for GC)%s\n"
|
u"CC(T+%.1f)[%s-%i] max pause: %lums, total time: %lums, slices: %lu, suspected: %lu, visited: %lu RCed and %lu%s GCed, collected: %lu RCed and %lu GCed (%lu|%lu|%lu waiting for GC)%s\n"
|
||||||
u"ForgetSkippable %lu times before CC, min: %lu ms, max: %lu ms, avg: %lu ms, total: %lu ms, max sync: %lu ms, removed: %lu");
|
u"ForgetSkippable %lu times before CC, min: %lu ms, max: %lu ms, avg: %lu ms, total: %lu ms, max sync: %lu ms, removed: %lu");
|
||||||
nsString msg;
|
nsString msg;
|
||||||
msg.Adopt(nsTextFormatter::smprintf(kFmt.get(), double(delta) / PR_USEC_PER_SEC,
|
msg.Adopt(nsTextFormatter::smprintf(kFmt.get(), double(delta) / PR_USEC_PER_SEC,
|
||||||
ProcessNameForCollectorLog(),
|
ProcessNameForCollectorLog(), getpid(),
|
||||||
gCCStats.mMaxSliceTime, gCCStats.mTotalSliceTime,
|
gCCStats.mMaxSliceTime, gCCStats.mTotalSliceTime,
|
||||||
aResults.mNumSlices, gCCStats.mSuspected,
|
aResults.mNumSlices, gCCStats.mSuspected,
|
||||||
aResults.mVisitedRefCounted, aResults.mVisitedGCed, mergeMsg.get(),
|
aResults.mVisitedRefCounted, aResults.mVisitedGCed, mergeMsg.get(),
|
||||||
|
@ -2121,12 +2121,13 @@ DOMGCSliceCallback(JSContext* aCx, JS::GCProgress aProgress, const JS::GCDescrip
|
||||||
PRTime delta = GetCollectionTimeDelta();
|
PRTime delta = GetCollectionTimeDelta();
|
||||||
|
|
||||||
if (sPostGCEventsToConsole) {
|
if (sPostGCEventsToConsole) {
|
||||||
NS_NAMED_LITERAL_STRING(kFmt, "GC(T+%.1f)[%s] ");
|
NS_NAMED_LITERAL_STRING(kFmt, "GC(T+%.1f)[%s-%i] ");
|
||||||
nsString prefix, gcstats;
|
nsString prefix, gcstats;
|
||||||
gcstats.Adopt(aDesc.formatSummaryMessage(aCx));
|
gcstats.Adopt(aDesc.formatSummaryMessage(aCx));
|
||||||
prefix.Adopt(nsTextFormatter::smprintf(kFmt.get(),
|
prefix.Adopt(nsTextFormatter::smprintf(kFmt.get(),
|
||||||
double(delta) / PR_USEC_PER_SEC,
|
double(delta) / PR_USEC_PER_SEC,
|
||||||
ProcessNameForCollectorLog()));
|
ProcessNameForCollectorLog(),
|
||||||
|
getpid()));
|
||||||
nsString msg = prefix + gcstats;
|
nsString msg = prefix + gcstats;
|
||||||
nsCOMPtr<nsIConsoleService> cs = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
|
nsCOMPtr<nsIConsoleService> cs = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
|
||||||
if (cs) {
|
if (cs) {
|
||||||
|
@ -2202,11 +2203,12 @@ DOMGCSliceCallback(JSContext* aCx, JS::GCProgress aProgress, const JS::GCDescrip
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sPostGCEventsToConsole) {
|
if (sPostGCEventsToConsole) {
|
||||||
NS_NAMED_LITERAL_STRING(kFmt, "[%s] ");
|
NS_NAMED_LITERAL_STRING(kFmt, "[%s-%i] ");
|
||||||
nsString prefix, gcstats;
|
nsString prefix, gcstats;
|
||||||
gcstats.Adopt(aDesc.formatSliceMessage(aCx));
|
gcstats.Adopt(aDesc.formatSliceMessage(aCx));
|
||||||
prefix.Adopt(nsTextFormatter::smprintf(kFmt.get(),
|
prefix.Adopt(nsTextFormatter::smprintf(kFmt.get(),
|
||||||
ProcessNameForCollectorLog()));
|
ProcessNameForCollectorLog(),
|
||||||
|
getpid()));
|
||||||
nsString msg = prefix + gcstats;
|
nsString msg = prefix + gcstats;
|
||||||
nsCOMPtr<nsIConsoleService> cs = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
|
nsCOMPtr<nsIConsoleService> cs = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
|
||||||
if (cs) {
|
if (cs) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче