Commit e99a81bb authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

Add UseCounter for performance.measureMemory API

Bug: 973627
Change-Id: Iee9a68b4e69a8bc51dc83a891618fa02574dd648
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013044Reviewed-by: default avatarNicolás Peña Moreno <npm@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733806}
parent 5fd396ce
......@@ -2501,6 +2501,7 @@ enum WebFeature {
kCSPROWithReasonableRestrictions = 3136,
kCSPWithBetterThanReasonableRestrictions = 3137,
kCSPROWithBetterThanReasonableRestrictions = 3138,
kMeasureMemory = 3139,
// Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots.
......
......@@ -71,7 +71,7 @@ interface Performance : EventTarget {
// https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJz71NmPwJ
[Exposed=Window, Measure] readonly attribute MemoryInfo memory;
[Exposed=(Window,Worker), CallWith=ScriptState, RuntimeEnabled=MeasureMemory, RaisesException] Promise<MeasureMemory> measureMemory(optional MeasureMemoryOptions options = {});
[MeasureAs=MeasureMemory, Exposed=(Window,Worker), CallWith=ScriptState, RuntimeEnabled=MeasureMemory, RaisesException] Promise<MeasureMemory> measureMemory(optional MeasureMemoryOptions options = {});
// JS Self-Profiling API
// https://github.com/WICG/js-self-profiling/
......
......@@ -26025,6 +26025,7 @@ to ensure that the crash string is shown properly on the user-facing crash UI.
<int value="3136" label="CSPROWithReasonableRestrictions"/>
<int value="3137" label="CSPWithBetterThanReasonableRestrictions"/>
<int value="3138" label="CSPROWithBetterThanReasonableRestrictions"/>
<int value="3139" label="MeasureMemory"/>
</enum>
<enum name="FeaturePolicyAllowlistType">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment