зеркало из https://github.com/mozilla/gecko-dev.git
Bug 797066 - Make javascript.options.mem.log only log the GC/CC details in the Console. r=terrence
This commit is contained in:
Родитель
1016f5ef0b
Коммит
e5802af749
|
@ -3145,7 +3145,7 @@ nsJSContext::CycleCollectNow(nsICycleCollectorListener *aListener,
|
|||
}
|
||||
}
|
||||
|
||||
if (sPostGCEventsToConsole || sPostGCEventsToObserver) {
|
||||
if (sPostGCEventsToObserver) {
|
||||
NS_NAMED_MULTILINE_LITERAL_STRING(kJSONFmt,
|
||||
NS_LL("{ \"timestamp\": %llu, ")
|
||||
NS_LL("\"duration\": %llu, ")
|
||||
|
@ -3506,7 +3506,7 @@ DOMGCSliceCallback(JSRuntime *aRt, js::GCProgress aProgress, const js::GCDescrip
|
|||
}
|
||||
}
|
||||
|
||||
if (sPostGCEventsToConsole || sPostGCEventsToObserver) {
|
||||
if (sPostGCEventsToObserver) {
|
||||
nsString json;
|
||||
json.Adopt(aDesc.formatJSON(aRt, PR_Now()));
|
||||
nsRefPtr<NotifyGCEndRunnable> notify = new NotifyGCEndRunnable(json);
|
||||
|
|
Загрузка…
Ссылка в новой задаче