summaryrefslogtreecommitdiffstats
path: root/devtools/client/performance-new/shared/background.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /devtools/client/performance-new/shared/background.sys.mjs
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/performance-new/shared/background.sys.mjs')
-rw-r--r--devtools/client/performance-new/shared/background.sys.mjs23
1 files changed, 18 insertions, 5 deletions
diff --git a/devtools/client/performance-new/shared/background.sys.mjs b/devtools/client/performance-new/shared/background.sys.mjs
index 4b19f68b71..a110b3e4cb 100644
--- a/devtools/client/performance-new/shared/background.sys.mjs
+++ b/devtools/client/performance-new/shared/background.sys.mjs
@@ -124,7 +124,7 @@ export const presets = {
"web-developer": {
entries: 128 * 1024 * 1024,
interval: 1,
- features: ["screenshots", "js", "cpu"],
+ features: ["screenshots", "js", "cpu", "memory"],
threads: ["GeckoMain", "Compositor", "Renderer", "DOM Worker"],
duration: 0,
profilerViewMode: "active-tab",
@@ -142,7 +142,15 @@ export const presets = {
"firefox-platform": {
entries: 128 * 1024 * 1024,
interval: 1,
- features: ["screenshots", "js", "stackwalk", "cpu", "java", "processcpu"],
+ features: [
+ "screenshots",
+ "js",
+ "stackwalk",
+ "cpu",
+ "java",
+ "processcpu",
+ "memory",
+ ],
threads: [
"GeckoMain",
"Compositor",
@@ -165,7 +173,7 @@ export const presets = {
graphics: {
entries: 128 * 1024 * 1024,
interval: 1,
- features: ["stackwalk", "js", "cpu", "java", "processcpu"],
+ features: ["stackwalk", "js", "cpu", "java", "processcpu", "memory"],
threads: [
"GeckoMain",
"Compositor",
@@ -199,6 +207,7 @@ export const presets = {
"audiocallbacktracing",
"ipcmessages",
"processcpu",
+ "memory",
],
threads: [
"cubeb",
@@ -248,6 +257,7 @@ export const presets = {
"java",
"processcpu",
"bandwidth",
+ "memory",
],
threads: [
"Compositor",
@@ -286,6 +296,7 @@ export const presets = {
"markersallthreads",
"power",
"bandwidth",
+ "memory",
],
threads: ["GeckoMain", "Renderer"],
duration: 0,
@@ -785,12 +796,13 @@ async function getResponseForMessage(request, browser) {
return profileCaptureResult.profile;
case "ERROR":
throw profileCaptureResult.error;
- default:
+ default: {
const { UnhandledCaseError } = lazy.Utils();
throw new UnhandledCaseError(
profileCaptureResult,
"profileCaptureResult"
);
+ }
}
}
case "GET_SYMBOL_TABLE": {
@@ -831,13 +843,14 @@ async function getResponseForMessage(request, browser) {
}
return [];
}
- default:
+ default: {
console.error(
"An unknown message type was received by the profiler's WebChannel handler.",
request
);
const { UnhandledCaseError } = lazy.Utils();
throw new UnhandledCaseError(request, "WebChannel request");
+ }
}
}