forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1650151 - Merge webIsolated processes when diffing with non-Fissi…
…on memory reports. r=njn Fission processes show up in about:memory as webIsolated=<URL>. This is great when comparing two reports from a single session, to precisely see how the memory usage of a particular process has changed, but it makes it harder to compare to a non-Fission memory report. For instance, when loading a news page with many ad iframes, what was a single process without Fission enabled will be split across more than a dozen processes. This patch fixes this by making it so that if exactly one memory report being diffed contains a webIsolated process, then webIsolated processes will be treated like regular web processes. Differential Revision: https://phabricator.services.mozilla.com/D85608
- Loading branch information
1 parent
1971ae6
commit 3c8ea64
Showing
5 changed files
with
103 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"foo": 1, | ||
"blah": 2, | ||
"memory_report": { | ||
"version": 1, | ||
"hasMozMallocUsableSize": true, | ||
"reports": [ | ||
{"process": "P (pid 12345)", "path": "explicit/foobar", "kind": 1, "units": 0, "amount": 100, "description": "Desc."}, | ||
{"process": "P (pid 12345)", "path": "explicit/zero1", "kind": 1, "units": 0, "amount": 0, "description": "Desc."}, | ||
{"process": "P (pid 12345)", "path": "heap-allocated", "kind": 2, "units": 0, "amount": 10000000, "description": "Heap allocated."}, | ||
|
||
{"process": "web (pid 12345)", "path": "explicit/a/b", "kind": 1, "units": 0, "amount": 2000000, "description": "Desc."}, | ||
{"process": "web (pid 12345)", "path": "explicit/a/c/d", "kind": 1, "units": 0, "amount": 2000000, "description": "Desc."}, | ||
{"process": "web (pid 12345)", "path": "heap-allocated", "kind": 2, "units": 0, "amount": 10000000, "description": "Heap allocated."} | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"foo": 1, | ||
"blah": 2, | ||
"memory_report": { | ||
"version": 1, | ||
"hasMozMallocUsableSize": true, | ||
"reports": [ | ||
{"process": "P (pid 12345)", "path": "explicit/foobar", "kind": 1, "units": 0, "amount": 400, "description": "Desc."}, | ||
{"process": "P (pid 12345)", "path": "explicit/zero1", "kind": 1, "units": 0, "amount": 0, "description": "Desc."}, | ||
{"process": "P (pid 12345)", "path": "heap-allocated", "kind": 2, "units": 0, "amount": 13000000, "description": "Heap allocated."}, | ||
|
||
{"process": "webIsolated=https://example.com (pid 12345)", "path": "explicit/a/b", "kind": 1, "units": 0, "amount": 2000000, "description": "Desc."}, | ||
{"process": "webIsolated=https://example.com (pid 12345)", "path": "explicit/a/c/d", "kind": 1, "units": 0, "amount": 3000000, "description": "Desc."}, | ||
{"process": "webIsolated=https://example.com (pid 12345)", "path": "heap-allocated", "kind": 2, "units": 0, "amount": 12000000, "description": "Heap allocated."} | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters