Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Issue 1978403004: Add UMA histograms for WebAudio (Closed)

Created:
4 years, 7 months ago by Raymond Toy
Modified:
4 years, 6 months ago
Reviewers:
Mark P, hongchan
CC:
asvitkine+watch_chromium.org, blink-reviews, chromium-reviews, haraken, hongchan
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA histograms for WebAudio. Histograms are added to keep track of the following properties: AudioBuffer.numberOfChannels AudioBuffer.length AudioBuffer.sampleRate AudioBuffer.sampleRateRatio (buffer rate divided by context rate) AudioContext.maxChannelCount AudioContext.sampleRate BiquadFilter.type Panner.panningModel OfflineAudioContext.channelCount OfflineAudioContext.length OfflineAudioContext.sampleRate BUG=607711, 621292 TEST=manually test using chrome://histograms Committed: https://crrev.com/8ceed89c8064f5c835b51c0ea07f259bceaca1d4 Cr-Commit-Position: refs/heads/master@{#399212}

Patch Set 1 #

Patch Set 2 : Add more histograms #

Patch Set 3 : Add histogram for createBuffer() #

Total comments: 5

Patch Set 4 : #

Total comments: 35

Patch Set 5 : Address comments #

Patch Set 6 : Add units; fix some summaries #

Patch Set 7 : Rename MaxChannelCount to MaxChannelsAvailable #

Patch Set 8 : Rebase and add more descriptions #

Total comments: 5

Patch Set 9 : Limit size of histogram #

Patch Set 10 : Address more review comments. #

Total comments: 2

Patch Set 11 : Use CustomCountHistogram #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -2 lines) Patch
M third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +41 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.cpp View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadProcessor.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PannerNode.cpp View 1 2 3 4 5 6 7 4 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/Panner.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 5 chunks +126 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (8 generated)
Raymond Toy
4 years, 7 months ago (2016-05-17 17:04:39 UTC) #3
Raymond Toy
PTAL
4 years, 7 months ago (2016-05-17 17:04:50 UTC) #4
hongchan
lgtm
4 years, 7 months ago (2016-05-17 17:52:29 UTC) #5
Raymond Toy
PTAL a second look; createBuffer() records some stats too.
4 years, 7 months ago (2016-05-17 18:55:22 UTC) #7
hongchan
https://codereview.chromium.org/1978403004/diff/40001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/40001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp#newcode218 third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp:218: DEFINE_STATIC_LOCAL(SparseHistogram, audioBufferSampleRateHistogram, I think we can move anything related ...
4 years, 7 months ago (2016-05-18 22:07:01 UTC) #8
Raymond Toy
https://codereview.chromium.org/1978403004/diff/40001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/40001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp#newcode218 third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp:218: DEFINE_STATIC_LOCAL(SparseHistogram, audioBufferSampleRateHistogram, On 2016/05/18 22:07:01, hoch wrote: > I ...
4 years, 7 months ago (2016-05-18 22:25:30 UTC) #9
hongchan
https://codereview.chromium.org/1978403004/diff/40001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/40001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp#newcode218 third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp:218: DEFINE_STATIC_LOCAL(SparseHistogram, audioBufferSampleRateHistogram, On 2016/05/18 22:25:30, Raymond Toy wrote: > ...
4 years, 7 months ago (2016-05-19 21:43:53 UTC) #10
Raymond Toy
https://codereview.chromium.org/1978403004/diff/40001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/40001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp#newcode220 third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp:220: DEFINE_STATIC_LOCAL(SparseHistogram, audioBufferSampleRateRatioHistogram, On 2016/05/19 21:43:53, hoch wrote: > Yes, ...
4 years, 7 months ago (2016-05-20 20:21:25 UTC) #11
hongchan
Confirmed the new change on createBuffer. lgtm.
4 years, 7 months ago (2016-05-20 20:31:47 UTC) #12
Raymond Toy
mpearson: PTAL
4 years, 7 months ago (2016-05-20 20:35:37 UTC) #14
Mark P
https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml#newcode59547 tools/metrics/histograms/histograms.xml:59547: +<histogram name="WebAudio.AudioBuffer.Length"> please add units= annotations to all these ...
4 years, 7 months ago (2016-05-20 23:03:30 UTC) #15
Mark P
https://codereview.chromium.org/1978403004/diff/60001/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/60001/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp#newcode94 third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp:94: DEFINE_STATIC_LOCAL(SparseHistogram, offlineContextChannelCountHistogram, SparseHistograms are slow because they acquire a ...
4 years, 7 months ago (2016-05-23 18:10:25 UTC) #16
Raymond Toy
https://codereview.chromium.org/1978403004/diff/60001/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/60001/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp#newcode94 third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp:94: DEFINE_STATIC_LOCAL(SparseHistogram, offlineContextChannelCountHistogram, On 2016/05/23 18:10:24, Mark P wrote: > ...
4 years, 7 months ago (2016-05-23 20:36:03 UTC) #17
Mark P
You replied to my comments. Did you mean to upload a new patchset? --mark
4 years, 7 months ago (2016-05-23 21:19:48 UTC) #18
Raymond Toy
On 2016/05/23 21:19:48, Mark P wrote: > You replied to my comments. Did you mean ...
4 years, 7 months ago (2016-05-23 21:21:21 UTC) #19
Mark P
Okay, I will wait for another patchset before looking again. --mark https://codereview.chromium.org/1978403004/diff/60001/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp (right): ...
4 years, 7 months ago (2016-05-23 21:30:24 UTC) #20
Raymond Toy
https://codereview.chromium.org/1978403004/diff/60001/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/60001/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp#newcode94 third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp:94: DEFINE_STATIC_LOCAL(SparseHistogram, offlineContextChannelCountHistogram, On 2016/05/23 21:30:24, Mark P wrote: > ...
4 years, 7 months ago (2016-05-23 23:12:01 UTC) #21
Mark P
https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml#newcode59547 tools/metrics/histograms/histograms.xml:59547: +<histogram name="WebAudio.AudioBuffer.Length"> On 2016/05/23 23:12:01, Raymond Toy wrote: > ...
4 years, 7 months ago (2016-05-23 23:41:54 UTC) #22
Raymond Toy
https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml#newcode59650 tools/metrics/histograms/histograms.xml:59650: + the type is set. On 2016/05/23 23:41:54, Mark ...
4 years, 7 months ago (2016-05-24 16:54:22 UTC) #23
Raymond Toy
https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml#newcode59584 tools/metrics/histograms/histograms.xml:59584: +<histogram name="WebAudio.AudioContext.MaxChannelCount"> On 2016/05/23 21:30:24, Mark P wrote: > ...
4 years, 7 months ago (2016-05-24 17:04:12 UTC) #24
Mark P
https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml#newcode59584 tools/metrics/histograms/histograms.xml:59584: +<histogram name="WebAudio.AudioContext.MaxChannelCount"> On 2016/05/24 17:04:12, Raymond Toy wrote: > ...
4 years, 7 months ago (2016-05-24 17:35:18 UTC) #25
Raymond Toy
https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml#newcode59584 tools/metrics/histograms/histograms.xml:59584: +<histogram name="WebAudio.AudioContext.MaxChannelCount"> On 2016/05/24 17:35:18, Mark P wrote: > ...
4 years, 7 months ago (2016-05-24 17:46:40 UTC) #26
Raymond Toy
On 2016/05/24 17:46:40, Raymond Toy wrote: > https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/1978403004/diff/60001/tools/metrics/histograms/histograms.xml#newcode59584 ...
4 years, 6 months ago (2016-05-31 21:36:54 UTC) #27
Mark P
On Tue, May 31, 2016 at 2:36 PM, rtoy@chromium.org via codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote: > On ...
4 years, 6 months ago (2016-05-31 21:42:55 UTC) #28
Mark P
On Tue, May 31, 2016 at 2:36 PM, rtoy@chromium.org via codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote: > On ...
4 years, 6 months ago (2016-05-31 21:42:56 UTC) #29
Raymond Toy
PTAL. I've added more descriptions; let me know how if I can make them better.
4 years, 6 months ago (2016-05-31 22:50:35 UTC) #30
Mark P
On 2016/05/31 22:50:35, Raymond Toy wrote: > PTAL. I've added more descriptions; let me know ...
4 years, 6 months ago (2016-06-02 23:12:02 UTC) #31
Mark P
histograms.xml is fine, but I still have some other comments on this changelist --mark https://codereview.chromium.org/1978403004/diff/60001/third_party/WebKit/Source/modules/webaudio/OfflineAudioContext.cpp ...
4 years, 6 months ago (2016-06-03 19:52:37 UTC) #32
Raymond Toy
Thanks for your comments. As you rightly point out, the sparse histograms could have been ...
4 years, 6 months ago (2016-06-09 19:17:10 UTC) #33
Mark P
https://codereview.chromium.org/1978403004/diff/170001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/170001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp#newcode254 third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp:254: audioBufferLengthHistogram.sample(clampTo(static_cast<int>(0.5 + histogramValue), 0, 60)); If you're doing a ...
4 years, 6 months ago (2016-06-09 20:18:24 UTC) #34
Raymond Toy
On 2016/06/09 20:18:24, Mark P wrote: > https://codereview.chromium.org/1978403004/diff/170001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp > File third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp > (right): > > ...
4 years, 6 months ago (2016-06-09 21:17:55 UTC) #35
Raymond Toy
On 2016/06/09 21:17:55, Raymond Toy wrote: > On 2016/06/09 20:18:24, Mark P wrote: > > ...
4 years, 6 months ago (2016-06-09 22:32:58 UTC) #36
Raymond Toy
https://codereview.chromium.org/1978403004/diff/170001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/170001/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp#newcode254 third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp:254: audioBufferLengthHistogram.sample(clampTo(static_cast<int>(0.5 + histogramValue), 0, 60)); On 2016/06/09 20:18:23, Mark ...
4 years, 6 months ago (2016-06-09 22:34:29 UTC) #37
Mark P
metrics lgtm, with one additional comment below --mark https://codereview.chromium.org/1978403004/diff/190001/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/190001/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp#newcode73 third_party/WebKit/Source/modules/webaudio/AudioContext.cpp:73: ("WebAudio.AudioContext.HardwareSampleRate")); ...
4 years, 6 months ago (2016-06-10 04:02:54 UTC) #38
Raymond Toy
https://codereview.chromium.org/1978403004/diff/190001/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/1978403004/diff/190001/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp#newcode73 third_party/WebKit/Source/modules/webaudio/AudioContext.cpp:73: ("WebAudio.AudioContext.HardwareSampleRate")); On 2016/06/10 04:02:53, Mark P wrote: > Is ...
4 years, 6 months ago (2016-06-10 15:13:44 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1978403004/190001
4 years, 6 months ago (2016-06-10 15:15:32 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:190001)
4 years, 6 months ago (2016-06-10 16:59:21 UTC) #44
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 16:59:32 UTC) #45
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 17:00:36 UTC) #47
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/8ceed89c8064f5c835b51c0ea07f259bceaca1d4
Cr-Commit-Position: refs/heads/master@{#399212}

Powered by Google App Engine
This is Rietveld 408576698