зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1698172 - Add descriptions to GC markers r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D108249
This commit is contained in:
Родитель
68c759ec5b
Коммит
c8b4a27dc9
|
@ -1010,6 +1010,11 @@ void CycleCollectedJSRuntime::GCSliceCallback(JSContext* aContext,
|
|||
using MS = mozilla::MarkerSchema;
|
||||
MS schema{MS::Location::markerChart, MS::Location::markerTable,
|
||||
MS::Location::timelineMemory};
|
||||
schema.AddStaticLabelValue(
|
||||
"Description",
|
||||
"Summary data for an entire major GC, encompassing a set of "
|
||||
"incremental slices. The main thread is not blocked for the "
|
||||
"entire major GC interval, only for the individual slices.");
|
||||
// No display instructions here, there is special handling in the
|
||||
// front-end.
|
||||
return schema;
|
||||
|
@ -1040,6 +1045,10 @@ void CycleCollectedJSRuntime::GCSliceCallback(JSContext* aContext,
|
|||
using MS = mozilla::MarkerSchema;
|
||||
MS schema{MS::Location::markerChart, MS::Location::markerTable,
|
||||
MS::Location::timelineMemory};
|
||||
schema.AddStaticLabelValue(
|
||||
"Description",
|
||||
"One slice of an incremental garbage collection (GC). The main "
|
||||
"thread is blocked during this time.");
|
||||
// No display instructions here, there is special handling in the
|
||||
// front-end.
|
||||
return schema;
|
||||
|
@ -1147,6 +1156,11 @@ void CycleCollectedJSRuntime::GCNurseryCollectionCallback(
|
|||
using MS = mozilla::MarkerSchema;
|
||||
MS schema{MS::Location::markerChart, MS::Location::markerTable,
|
||||
MS::Location::timelineMemory};
|
||||
schema.AddStaticLabelValue(
|
||||
"Description",
|
||||
"A minor GC (aka nursery collection) to clear out the buffer used "
|
||||
"for recent allocations and move surviving data to the tenured "
|
||||
"(long-lived) heap.");
|
||||
// No display instructions here, there is special handling in the
|
||||
// front-end.
|
||||
return schema;
|
||||
|
|
Загрузка…
Ссылка в новой задаче