diff --git a/devtools/client/performance-new/shared/utils.js b/devtools/client/performance-new/shared/utils.js index 50b96efd664b..19b9d2625b48 100644 --- a/devtools/client/performance-new/shared/utils.js +++ b/devtools/client/performance-new/shared/utils.js @@ -577,6 +577,13 @@ const featureDescriptions = [ value: "sandbox", title: "Report sandbox syscalls and logs in the profiler.", }, + { + name: "Flows", + value: "flows", + title: + "Include all flow-related markers. These markers show the program flow better but " + + "can cause more overhead in some places than normal.", + }, ]; module.exports = { diff --git a/mozglue/baseprofiler/public/BaseProfilerState.h b/mozglue/baseprofiler/public/BaseProfilerState.h index b55a89092ef4..349c95b800e5 100644 --- a/mozglue/baseprofiler/public/BaseProfilerState.h +++ b/mozglue/baseprofiler/public/BaseProfilerState.h @@ -250,7 +250,12 @@ class MOZ_RAII AutoProfilerStats { \ MACRO(26, "sandbox", Sandbox, \ "Report sandbox syscalls and logs in the " \ - "profiler.") + "profiler.") \ + \ + MACRO(27, "flows", Flows, \ + "Include all flow-related markers. These markers show the program" \ + "better but can cause more overhead in some places than normal.") + // *** Synchronize with lists in ProfilerState.h and geckoProfiler.json *** struct ProfilerFeature { diff --git a/toolkit/components/extensions/schemas/geckoProfiler.json b/toolkit/components/extensions/schemas/geckoProfiler.json index 488e632dc650..b154ade19f0a 100644 --- a/toolkit/components/extensions/schemas/geckoProfiler.json +++ b/toolkit/components/extensions/schemas/geckoProfiler.json @@ -50,7 +50,8 @@ "bandwidth", "memory", "tracing", - "sandbox" + "sandbox", + "flows" ] }, { diff --git a/tools/profiler/public/ProfilerState.h b/tools/profiler/public/ProfilerState.h index 6178d8506625..02f79e90779b 100644 --- a/tools/profiler/public/ProfilerState.h +++ b/tools/profiler/public/ProfilerState.h @@ -131,7 +131,12 @@ \ MACRO(26, "sandbox", Sandbox, \ "Report sandbox syscalls and logs in the " \ - "profiler.") + "profiler.") \ + \ + MACRO(27, "flows", Flows, \ + "Include all flow-related markers. These markers show the program" \ + "better but can cause more overhead in some places than normal.") + // *** Synchronize with lists in BaseProfilerState.h and geckoProfiler.json *** struct ProfilerFeature {