зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1803751 - Make some marker fields searchable and bump the profile version r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D163714
This commit is contained in:
Родитель
a520e8705c
Коммит
0d5987410a
|
@ -58,7 +58,8 @@ struct CSSAnimationMarker {
|
|||
static MarkerSchema MarkerTypeDisplay() {
|
||||
using MS = MarkerSchema;
|
||||
MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
|
||||
schema.AddKeyFormat("Name", MS::Format::String);
|
||||
schema.AddKeyFormatSearchable("Name", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormat("properties", "Animated Properties",
|
||||
MS::Format::String);
|
||||
schema.AddKeyLabelFormat("oncompositor", "Can Run on Compositor",
|
||||
|
|
|
@ -1089,10 +1089,14 @@ nsresult EventDispatcher::Dispatch(nsISupports* aTarget,
|
|||
schema.SetTooltipLabel("{marker.data.eventType} - DOMEvent");
|
||||
schema.SetTableLabel(
|
||||
"{marker.data.eventType} - {marker.data.target}");
|
||||
schema.AddKeyLabelFormat("target", "Event Target",
|
||||
MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("target", "Event Target",
|
||||
MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormat("latency", "Latency",
|
||||
MS::Format::Duration);
|
||||
schema.AddKeyLabelFormatSearchable("eventType", "Event Type",
|
||||
MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -217,7 +217,9 @@ class AsyncLogger {
|
|||
MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
|
||||
schema.SetChartLabel("{marker.data.name}");
|
||||
schema.SetTableLabel("{marker.name} - {marker.data.name}");
|
||||
schema.AddKeyLabelFormat("name", "Comment", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("name", "Comment",
|
||||
MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -335,7 +335,8 @@ struct UserTimingMarker {
|
|||
schema.SetAllLabels("{marker.data.name}");
|
||||
schema.AddStaticLabelValue("Marker", "UserTiming");
|
||||
schema.AddKeyLabelFormat("entryType", "Entry Type", MS::Format::String);
|
||||
schema.AddKeyLabelFormat("name", "Name", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("name", "Name", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormat("startMark", "Start Mark", MS::Format::String);
|
||||
schema.AddKeyLabelFormat("endMark", "End Mark", MS::Format::String);
|
||||
schema.AddStaticLabelValue("Description",
|
||||
|
|
|
@ -4618,7 +4618,8 @@ struct Internals {
|
|||
static MarkerSchema MarkerTypeDisplay() {
|
||||
using MS = MarkerSchema;
|
||||
MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
|
||||
schema.AddKeyLabelFormat("prefName", "Name", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("prefName", "Name", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormat("prefKind", "Kind", MS::Format::String);
|
||||
schema.AddKeyLabelFormat("prefType", "Type", MS::Format::String);
|
||||
schema.AddKeyLabelFormat("prefValue", "Value", MS::Format::String);
|
||||
|
|
|
@ -1841,7 +1841,7 @@ static void StreamMetaJSCustomObject(PSLockRef aLock,
|
|||
bool aIsShuttingDown) {
|
||||
MOZ_RELEASE_ASSERT(CorePS::Exists() && ActivePS::Exists(aLock));
|
||||
|
||||
aWriter.IntProperty("version", 25);
|
||||
aWriter.IntProperty("version", 26);
|
||||
|
||||
// The "startTime" field holds the number of milliseconds since midnight
|
||||
// January 1, 1970 GMT. This grotty code computes (Now - (Now -
|
||||
|
|
|
@ -148,7 +148,8 @@ struct TextMarker {
|
|||
MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
|
||||
schema.SetChartLabel("{marker.data.name}");
|
||||
schema.SetTableLabel("{marker.name} - {marker.data.name}");
|
||||
schema.AddKeyLabelFormat("name", "Details", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("name", "Details", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
@ -169,7 +170,8 @@ struct Tracing {
|
|||
using MS = MarkerSchema;
|
||||
MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable,
|
||||
MS::Location::TimelineOverview};
|
||||
schema.AddKeyLabelFormat("category", "Type", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("category", "Type", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -78,10 +78,14 @@ struct TraceMarker {
|
|||
schema.SetTableLabel(
|
||||
"{marker.name} {marker.data.name1} {marker.data.val1} "
|
||||
"{marker.data.name2} {marker.data.val2}");
|
||||
schema.AddKeyLabelFormat("name1", "Key 1", MS::Format::String);
|
||||
schema.AddKeyLabelFormat("val1", "Value 1", MS::Format::String);
|
||||
schema.AddKeyLabelFormat("name2", "Key 2", MS::Format::String);
|
||||
schema.AddKeyLabelFormat("val2", "Value 2", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("name1", "Key 1", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormatSearchable("val1", "Value 1", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormatSearchable("name2", "Key 2", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormatSearchable("val2", "Value 2", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2804,7 +2804,7 @@ static void StreamMetaJSCustomObject(
|
|||
const PreRecordedMetaInformation& aPreRecordedMetaInformation) {
|
||||
MOZ_RELEASE_ASSERT(CorePS::Exists() && ActivePS::Exists(aLock));
|
||||
|
||||
aWriter.IntProperty("version", 25);
|
||||
aWriter.IntProperty("version", 26);
|
||||
|
||||
// The "startTime" field holds the number of milliseconds since midnight
|
||||
// January 1, 1970 GMT. This grotty code computes (Now - (Now -
|
||||
|
@ -3055,7 +3055,8 @@ struct JavaMarkerWithDetails {
|
|||
schema.SetTooltipLabel("{marker.name}");
|
||||
schema.SetChartLabel("{marker.data.name}");
|
||||
schema.SetTableLabel("{marker.name} - {marker.data.name}");
|
||||
schema.AddKeyLabelFormat("name", "Details", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("name", "Details", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -50,6 +50,9 @@ struct FileIOMarker {
|
|||
schema.AddKeyLabelFormatSearchable("filename", "Filename",
|
||||
MS::Format::FilePath,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormatSearchable("threadId", "Thread ID",
|
||||
MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -632,8 +632,11 @@ class LogModuleManager {
|
|||
using MS = MarkerSchema;
|
||||
MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
|
||||
schema.SetTableLabel("({marker.data.module}) {marker.data.name}");
|
||||
schema.AddKeyLabelFormat("module", "Module", MS::Format::String);
|
||||
schema.AddKeyLabelFormat("name", "Name", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("module", "Module",
|
||||
MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormatSearchable("name", "Name", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -75,7 +75,8 @@ struct TaskMarker {
|
|||
schema.SetTableLabel(
|
||||
"{marker.name} - {marker.data.name} - priority: "
|
||||
"{marker.data.priorityName} ({marker.data.priority})");
|
||||
schema.AddKeyLabelFormat("name", "Task Name", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("name", "Task Name", MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
schema.AddKeyLabelFormat("priorityName", "Priority Name",
|
||||
MS::Format::String);
|
||||
schema.AddKeyLabelFormat("priority", "Priority level", MS::Format::Integer);
|
||||
|
|
|
@ -1577,7 +1577,9 @@ void PerformanceCounterState::MaybeReportAccumulatedTime(TimeStamp aNow) {
|
|||
static MarkerSchema MarkerTypeDisplay() {
|
||||
using MS = MarkerSchema;
|
||||
MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
|
||||
schema.AddKeyLabelFormat("category", "Type", MS::Format::String);
|
||||
schema.AddKeyLabelFormatSearchable("category", "Type",
|
||||
MS::Format::String,
|
||||
MS::Searchable::Searchable);
|
||||
return schema;
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче