|
|
Created:
3 years, 10 months ago by Raymond Toy Modified:
3 years, 9 months ago CC:
chromium-reviews, blink-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionRemove unnecessary window WebAudio attributes
These attributes were added to measure the usage of the new WebAudio constructors. This has been replaced with a different scheme using the IDL files to specify measurement.
Thus, these are obsolete and should be removed. The corresponding UseCounter entries are also removed.
BUG=693735
TEST=none
Review-Url: https://codereview.chromium.org/2700233003
Cr-Commit-Position: refs/heads/master@{#453259}
Committed: https://chromium.googlesource.com/chromium/src/+/9f058d69c1820c58ca8df07865b7021e5ba3030f
Patch Set 1 #
Total comments: 1
Patch Set 2 : Remove entries from use counter. #
Total comments: 2
Patch Set 3 : Remove WindowWebAudio.idl #
Messages
Total messages: 30 (15 generated)
The CQ bit was checked by rtoy@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
rtoy@chromium.org changed reviewers: + foolip@chromium.org, hongchan@chromium.org
foolip@ Is this what you're thinking of in removing all of the attributes for the constructors?
On 2017/02/21 21:31:19, Raymond Toy wrote: > foolip@ Is this what you're thinking of in removing all of the attributes for > the constructors? Then how do we track these from now on? Where is the tracking happening?
On 2017/02/22 19:08:12, hongchan wrote: > On 2017/02/21 21:31:19, Raymond Toy wrote: > > foolip@ Is this what you're thinking of in removing all of the attributes for > > the constructors? > > Then how do we track these from now on? Where is the tracking happening? In each idl file for the node, we now have a Measure, which shows up in the metrics as V8<NodeName>. (We added this recently; I didn't know such a thing existed.)
On 2017/02/22 19:22:44, Raymond Toy wrote: > On 2017/02/22 19:08:12, hongchan wrote: > > On 2017/02/21 21:31:19, Raymond Toy wrote: > > > foolip@ Is this what you're thinking of in removing all of the attributes > for > > > the constructors? > > > > Then how do we track these from now on? Where is the tracking happening? > > In each idl file for the node, we now have a Measure, which shows up in the > metrics as V8<NodeName>. > > (We added this recently; I didn't know such a thing existed.) Er, V8<NodeName>_Constructor, such as V8GainNode_Constructor
lgtm % UseCounter.h https://codereview.chromium.org/2700233003/diff/1/third_party/WebKit/Source/m... File third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl (left): https://codereview.chromium.org/2700233003/diff/1/third_party/WebKit/Source/m... third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl:9: [MeasureAs=WebAudioAnalyserNode] attribute AnalyserNodeConstructor AnalyserNode; Can you also remove all of these from UseCounter.h? The new ones for the constructors have separate entries.
On 2017/02/23 02:32:09, foolip wrote: > lgtm % UseCounter.h > > https://codereview.chromium.org/2700233003/diff/1/third_party/WebKit/Source/m... > File third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl (left): > > https://codereview.chromium.org/2700233003/diff/1/third_party/WebKit/Source/m... > third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl:9: > [MeasureAs=WebAudioAnalyserNode] attribute AnalyserNodeConstructor AnalyserNode; > Can you also remove all of these from UseCounter.h? The new ones for the > constructors have separate entries. Will do. I confess though, that I can't make sense of WebAudioGainNode (https://www.chromestatus.com/metrics/feature/timeline/popularity/1570) vs V8GainNode_Constructor (https://www.chromestatus.com/metrics/feature/timeline/popularity/1714) Perhaps WebAudioGainNode wasn't really measuring what I wanted? V8GainNode_Constructor kind of matches my expectations of low usage, slowly growing over time (except for that spike). I think only Chrome as the constructors launched. (FF coming soon, I think)
The CQ bit was checked by rtoy@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/02/23 16:44:32, Raymond Toy wrote: > On 2017/02/23 02:32:09, foolip wrote: > > lgtm % UseCounter.h > > > > > https://codereview.chromium.org/2700233003/diff/1/third_party/WebKit/Source/m... > > File third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl (left): > > > > > https://codereview.chromium.org/2700233003/diff/1/third_party/WebKit/Source/m... > > third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl:9: > > [MeasureAs=WebAudioAnalyserNode] attribute AnalyserNodeConstructor > AnalyserNode; > > Can you also remove all of these from UseCounter.h? The new ones for the > > constructors have separate entries. > > Will do. > > I confess though, that I can't make sense of WebAudioGainNode > (https://www.chromestatus.com/metrics/feature/timeline/popularity/1570) vs > V8GainNode_Constructor > (https://www.chromestatus.com/metrics/feature/timeline/popularity/1714) > > Perhaps WebAudioGainNode wasn't really measuring what I wanted? > V8GainNode_Constructor kind of matches my expectations of low usage, slowly > growing over time (except for that spike). I think only Chrome as the > constructors launched. (FF coming soon, I think) Right, WebAudioGainNode and friends never measured anything very meaningful. Any access of the window.WebAudioGainNode property would trigger it, and due to enumeration of all attributes on window, the real usage is hard to ascertain. The very similar usage graphs for the different nodes certainly suggests to me that usage was dominated by enumeration and not actual Web Audio code.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Remove unnecessary attributes BUG=693735 TEST=none ========== to ========== Remove unnecessary window WebAudio attributes These attributes were added to measure the usage of the new WebAudio constructors. This has been replaced with a different scheme using the IDL files to specify measurement. Thus, these are obsolete and should be removed. The corresponding UseCounter entries are also removed. BUG=693735 TEST=none ==========
PTAL
lgtm % another nit https://codereview.chromium.org/2700233003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl (right): https://codereview.chromium.org/2700233003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl:7: ] partial interface Window { Oh, I didn't notice this partial interface actually becomes empty. Can you remove the file entirely, together with the dummy DOMWindowWebAudio.h?
https://codereview.chromium.org/2700233003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl (right): https://codereview.chromium.org/2700233003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/modules/webaudio/WindowWebAudio.idl:7: ] partial interface Window { On 2017/02/23 19:39:38, foolip wrote: > Oh, I didn't notice this partial interface actually becomes empty. Can you > remove the file entirely, together with the dummy DOMWindowWebAudio.h? Done.
rtoy@chromium.org changed reviewers: + haraken@chromium.org
haraken@chromium.org: Please review changes in UseCounter.h and modules_idl_files.gni
lgtm
LGTM
The CQ bit was checked by rtoy@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from foolip@chromium.org Link to the patchset: https://codereview.chromium.org/2700233003/#ps40001 (title: "Remove WindowWebAudio.idl")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1488211925076020, "parent_rev": "2b7b343f00720cb53ac5b10918125037ee03deb0", "commit_rev": "9f058d69c1820c58ca8df07865b7021e5ba3030f"}
Message was sent while issue was closed.
Description was changed from ========== Remove unnecessary window WebAudio attributes These attributes were added to measure the usage of the new WebAudio constructors. This has been replaced with a different scheme using the IDL files to specify measurement. Thus, these are obsolete and should be removed. The corresponding UseCounter entries are also removed. BUG=693735 TEST=none ========== to ========== Remove unnecessary window WebAudio attributes These attributes were added to measure the usage of the new WebAudio constructors. This has been replaced with a different scheme using the IDL files to specify measurement. Thus, these are obsolete and should be removed. The corresponding UseCounter entries are also removed. BUG=693735 TEST=none Review-Url: https://codereview.chromium.org/2700233003 Cr-Commit-Position: refs/heads/master@{#453259} Committed: https://chromium.googlesource.com/chromium/src/+/9f058d69c1820c58ca8df07865b7... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/9f058d69c1820c58ca8df07865b7... |