Bug 1687631 - about:profiling CPU Utilization is now recommended and in all presets - r=florian

Also since the front-end handling is now deployed, there is no need to mention the deploy preview URL anymore.

Differential Revision: https://phabricator.services.mozilla.com/D107597
This commit is contained in:
Gerald Squelart 2021-03-15 11:54:43 +00:00
parent f62cae8410
commit e6e59a38c3
2 changed files with 12 additions and 14 deletions

View File

@ -93,7 +93,7 @@ const presets = {
"Recommended preset for most web app debugging, with low overhead.",
entries: 128 * 1024 * 1024,
interval: 1,
features: ["screenshots", "js"],
features: ["screenshots", "js", "cpu"],
threads: ["GeckoMain", "Compositor", "Renderer", "DOM Worker"],
duration: 0,
profilerViewMode: "active-tab",
@ -103,7 +103,7 @@ const presets = {
description: "Recommended preset for internal Firefox platform debugging.",
entries: 128 * 1024 * 1024,
interval: 1,
features: ["screenshots", "js", "leaf", "stackwalk", "java"],
features: ["screenshots", "js", "leaf", "stackwalk", "cpu", "java"],
threads: ["GeckoMain", "Compositor", "Renderer", "SwComposite"],
duration: 0,
},
@ -112,7 +112,7 @@ const presets = {
description: "Recommended preset for internal Firefox front-end debugging.",
entries: 128 * 1024 * 1024,
interval: 1,
features: ["screenshots", "js", "leaf", "stackwalk", "java"],
features: ["screenshots", "js", "leaf", "stackwalk", "cpu", "java"],
threads: ["GeckoMain", "Compositor", "Renderer", "DOM Worker"],
duration: 0,
},
@ -122,7 +122,7 @@ const presets = {
"Recommended preset for Firefox graphics performance investigation.",
entries: 128 * 1024 * 1024,
interval: 1,
features: ["leaf", "stackwalk", "js", "java"],
features: ["leaf", "stackwalk", "js", "cpu", "java"],
threads: [
"GeckoMain",
"Compositor",
@ -139,7 +139,7 @@ const presets = {
description: "Recommended preset for diagnosing audio and video problems.",
entries: 128 * 1024 * 1024,
interval: 1,
features: ["js", "leaf", "stackwalk", "audiocallbacktracing"],
features: ["js", "leaf", "stackwalk", "cpu", "audiocallbacktracing"],
threads: [
"AsyncCubebTask",
"AudioIPC",

View File

@ -321,6 +321,13 @@ const featureDescriptions = [
"Record JavaScript stack information, and interleave it with native stacks.",
recommended: true,
},
{
name: "CPU Utilization",
value: "cpu",
title:
"Record how much CPU has been used between samples by each profiled thread.",
recommended: true,
},
{
name: "Java",
value: "java",
@ -411,15 +418,6 @@ const featureDescriptions = [
value: "audiocallbacktracing",
title: "Trace real-time audio callbacks.",
},
{
name: "CPU Utilization",
value: "cpu",
title:
"CPU utilization by threads. To view graphs, in about:config set " +
"devtools.performance.recording.ui-base-url to " +
"https://deploy-preview-3098--perf-html.netlify.app",
experimental: true,
},
];
module.exports = {