Bug 1698172 - Add descriptions to GC markers r=jonco

Differential Revision: https://phabricator.services.mozilla.com/D108249
This commit is contained in:
Steve Fink 2021-03-22 16:00:52 +00:00
Родитель 68c759ec5b
Коммит c8b4a27dc9
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -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;