Closed Bug 1614612 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 21728 - Update performance.measureMemory to the latest proposal

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 21728 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/21728
Details from upstream follow.

Ulan Degenbaev <ulan@chromium.org> wrote:

Update performance.measureMemory to the latest proposal

This changes the result format of the API to the latest version of
the proposal at https://github.com/ulan/performance-measure-memory.
Specifically, the result format changes from JS only and per-frame:
{
total: {
jsMemoryEstimate: 200MB,
jsMemoryRange: [100
MB, 300*MB]
},
current: {..},
other: [..]
}

to more a generic format with breakdown:
{
bytes: 70MB,
breakdown: [
{bytes: 40
MB, globals: 2, type: 'js', origins: ['foo.com']},
{bytes: 30*MB, globals: 1, type: 'js', origins: ['bar.com']}
]
}

Additionally this patch skips extension contexts and relaxes
cross-origin memory measurement for site-isolated pages.

Bug:1049093
Change-Id: I997bfe9f6008eaedd0ce5010839232ef3540cad0
Reviewed-on: https://chromium-review.googlesource.com/2047028
WPT-Export-Revision: 3c19a0d782f39df42cba203e933b3a23512f20ec

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 48 tests

Status Summary

Firefox

OK : 4
PASS : 44
FAIL : 4

Chrome

OK : 3
FAIL : 3
TIMEOUT: 2

Safari

OK : 4
FAIL : 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/measure-memory/measure-memory.tentative.any.worker.html
Well-formed result of performance.measureMemory.: FAIL (Chrome: TIMEOUT, Safari: FAIL)
/measure-memory/measure-memory-same-origin-iframe.tentative.window.html
Well-formed result of performance.measureMemory with same-origin iframe.: FAIL (Chrome: FAIL, Safari: FAIL)
/measure-memory/measure-memory-cross-origin-iframe.tentative.window.html
Well-formed result of performance.measureMemory with cross-origin iframe.: FAIL (Chrome: FAIL, Safari: FAIL)
/measure-memory/measure-memory.tentative.any.html
Well-formed result of performance.measureMemory.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ff45c3327a2c [wpt PR 21728] - Update performance.measureMemory to the latest proposal, a=testonly https://hg.mozilla.org/integration/autoland/rev/752b45c125a8 [wpt PR 21728] - Update wpt metadata, a=testonly
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.