Commit ddae0f7c authored by Nazım Can Altınova's avatar Nazım Can Altınova
Browse files

Bug 1728544 - Make the MarkerSchema::Location enum class values CamelCased r=gerald

parent 681df612
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1053,8 +1053,8 @@ nsresult EventDispatcher::Dispatch(nsISupports* aTarget,
            }
            static MarkerSchema MarkerTypeDisplay() {
              using MS = MarkerSchema;
              MS schema{MS::Location::markerChart, MS::Location::markerTable,
                        MS::Location::timelineOverview};
              MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable,
                        MS::Location::TimelineOverview};
              schema.SetChartLabel("{marker.data.eventType}");
              schema.SetTooltipLabel("{marker.data.eventType} - DOMEvent");
              schema.SetTableLabel("{marker.data.eventType}");
+2 −2
Original line number Diff line number Diff line
@@ -326,7 +326,7 @@ struct ProcessPriorityChange {
  }
  static MarkerSchema MarkerTypeDisplay() {
    using MS = MarkerSchema;
    MS schema{MS::Location::markerChart, MS::Location::markerTable};
    MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
    schema.AddKeyFormat("Before", MS::Format::string);
    schema.AddKeyFormat("After", MS::Format::string);
    schema.AddStaticLabelValue("Note",
@@ -352,7 +352,7 @@ struct ProcessPriority {
  }
  static MarkerSchema MarkerTypeDisplay() {
    using MS = MarkerSchema;
    MS schema{MS::Location::markerChart, MS::Location::markerTable};
    MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
    schema.AddKeyFormat("Priority", MS::Format::string);
    schema.AddKeyFormat("Marker cause", MS::Format::string);
    schema.SetAllLabels("priority: {marker.data.Priority}");
+2 −2
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ struct SubProcessPriorityChange {
  }
  static MarkerSchema MarkerTypeDisplay() {
    using MS = MarkerSchema;
    MS schema{MS::Location::markerChart, MS::Location::markerTable};
    MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
    schema.AddKeyFormat("pid", MS::Format::integer);
    schema.AddKeyFormat("Before", MS::Format::string);
    schema.AddKeyFormat("After", MS::Format::string);
@@ -135,7 +135,7 @@ struct SubProcessPriority {
  }
  static MarkerSchema MarkerTypeDisplay() {
    using MS = MarkerSchema;
    MS schema{MS::Location::markerChart, MS::Location::markerTable};
    MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
    schema.AddKeyFormat("pid", MS::Format::integer);
    schema.AddKeyFormat("Priority", MS::Format::string);
    schema.AddKeyFormat("Marker cause", MS::Format::string);
+2 −2
Original line number Diff line number Diff line
@@ -214,7 +214,7 @@ class AsyncLogger {
            }
            static MarkerSchema MarkerTypeDisplay() {
              using MS = MarkerSchema;
              MS schema{MS::Location::markerChart, MS::Location::markerTable};
              MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
              schema.SetChartLabel("{marker.data.name}");
              schema.SetTableLabel("{marker.name} - {marker.data.name}");
              schema.AddKeyLabelFormat("name", "Comment",
@@ -231,7 +231,7 @@ class AsyncLogger {
                baseprofiler::SpliceableJSONWriter& aWriter) {}
            static MarkerSchema MarkerTypeDisplay() {
              using MS = MarkerSchema;
              MS schema{MS::Location::markerChart, MS::Location::markerTable};
              MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
              // Nothing outside the defaults.
              return schema;
            }
+1 −1
Original line number Diff line number Diff line
@@ -255,7 +255,7 @@ struct UserTimingMarker {
  }
  static MarkerSchema MarkerTypeDisplay() {
    using MS = MarkerSchema;
    MS schema{MS::Location::markerChart, MS::Location::markerTable};
    MS schema{MS::Location::MarkerChart, MS::Location::MarkerTable};
    schema.SetAllLabels("{marker.data.name}");
    schema.AddStaticLabelValue("Marker", "UserTiming");
    schema.AddKeyLabelFormat("entryType", "Entry Type", MS::Format::string);
Loading