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

Issue 14827002: Report timing statistics for audio controller methods via UMA. (Closed)

Created:
7 years, 7 months ago by DaleCurtis
Modified:
7 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, SteveT, Alexei Svitkine (slow)
Visibility:
Public.

Description

Report timing statistics for audio controller methods via UMA. Logs the time taken to execute the main methods of AudioInputController and AudioOutputController. This timing information will be used to determine if we can combine the audio thread and the UI thread on OSX to (hopefully) fix http://crbug.com/158170. BUG=158170 TEST=chrome://histograms/Media.Audio contains information. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200414

Patch Set 1 : Cleanup. #

Total comments: 13

Patch Set 2 : Comments. #

Patch Set 3 : Add unique names. #

Patch Set 4 : Remove DISALLOW... #

Total comments: 5

Patch Set 5 : Comments. #

Total comments: 2

Patch Set 6 : TimeTicks -> TimeDelta. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -0 lines) Patch
M media/audio/audio_input_controller.cc View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M media/audio/audio_output_controller.cc View 1 2 3 4 6 chunks +6 lines, -0 lines 0 comments Download
A media/base/scoped_histogram_timer.h View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A media/base/scoped_histogram_timer_unittest.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
DaleCurtis
7 years, 7 months ago (2013-05-02 21:41:09 UTC) #1
jar (doing other things)
This is an interesting macro. It is plausible that it should be in base/metrics/*. Please ...
7 years, 7 months ago (2013-05-03 21:50:25 UTC) #2
DaleCurtis
I'm happy to move this to base/metrics/ if desired. Not sure what kind of unittest ...
7 years, 7 months ago (2013-05-03 23:16:56 UTC) #3
DaleCurtis
(reasons for why more macros are needed: http://stackoverflow.com/questions/10379691/creating-macro-using-line-for-different-variable-names )
7 years, 7 months ago (2013-05-03 23:17:42 UTC) #4
scherkus (not reviewing)
the histograms themselves Look Good -- I agree that if we sort out the macro ...
7 years, 7 months ago (2013-05-03 23:31:48 UTC) #5
jar (doing other things)
https://codereview.chromium.org/14827002/diff/5001/media/base/scoped_uma_timer.h File media/base/scoped_uma_timer.h (right): https://codereview.chromium.org/14827002/diff/5001/media/base/scoped_uma_timer.h#newcode14 media/base/scoped_uma_timer.h:14: class ScopedHistogramTimer { \ <Doh>... I feel embarrassed.. I ...
7 years, 7 months ago (2013-05-04 08:58:31 UTC) #6
Ilya Sherman
On 2013/05/03 21:50:25, jar wrote: > Ilya: WDYT of the macro in the header for ...
7 years, 7 months ago (2013-05-06 23:36:14 UTC) #7
DaleCurtis
PTAL. I also renamed a couple bits for uniformity. https://codereview.chromium.org/14827002/diff/5001/media/base/scoped_uma_timer.h File media/base/scoped_uma_timer.h (right): https://codereview.chromium.org/14827002/diff/5001/media/base/scoped_uma_timer.h#newcode14 media/base/scoped_uma_timer.h:14: ...
7 years, 7 months ago (2013-05-07 20:08:51 UTC) #8
DaleCurtis
https://codereview.chromium.org/14827002/diff/5001/media/base/scoped_uma_timer.h File media/base/scoped_uma_timer.h (right): https://codereview.chromium.org/14827002/diff/5001/media/base/scoped_uma_timer.h#newcode21 media/base/scoped_uma_timer.h:21: base::Time constructed_; \ On 2013/05/03 23:16:57, DaleCurtis wrote: > ...
7 years, 7 months ago (2013-05-08 00:01:30 UTC) #9
jar (doing other things)
FYI: If you wanted it to work, the following should do the trick. I used ...
7 years, 7 months ago (2013-05-08 00:55:23 UTC) #10
DaleCurtis
https://codereview.chromium.org/14827002/diff/5001/media/base/scoped_uma_timer.h File media/base/scoped_uma_timer.h (right): https://codereview.chromium.org/14827002/diff/5001/media/base/scoped_uma_timer.h#newcode21 media/base/scoped_uma_timer.h:21: base::Time constructed_; \ On 2013/05/08 00:55:23, jar wrote: > ...
7 years, 7 months ago (2013-05-08 01:34:04 UTC) #11
DaleCurtis
Ping. Any more comments? I'd like to merge this to M28 (possibly M27 if I ...
7 years, 7 months ago (2013-05-09 20:06:45 UTC) #12
scherkus (not reviewing)
lgtm from me -- deferring to jar@ for the macro / histrogram magic
7 years, 7 months ago (2013-05-09 20:07:58 UTC) #13
jar (doing other things)
https://codereview.chromium.org/14827002/diff/22001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/14827002/diff/22001/tools/metrics/histograms/histograms.xml#newcode1015 tools/metrics/histograms/histograms.xml:1015: <histogram name="Media.AudioInputController.CloseTime" units="ms"> nit: These all look almost the ...
7 years, 7 months ago (2013-05-14 01:43:57 UTC) #14
jar (doing other things)
.... oh and the "macro magic" LGTM. Let's see if other folks ask of this ...
7 years, 7 months ago (2013-05-14 01:45:02 UTC) #15
Alexei Svitkine (slow)
https://codereview.chromium.org/14827002/diff/22001/media/base/scoped_histogram_timer.h File media/base/scoped_histogram_timer.h (right): https://codereview.chromium.org/14827002/diff/22001/media/base/scoped_histogram_timer.h#newcode25 media/base/scoped_histogram_timer.h:25: UMA_HISTOGRAM_TIMES(name, base::TimeTicks::Now() - constructed_); \ Please extract base::TimeTicks::Now() - ...
7 years, 7 months ago (2013-05-14 15:55:43 UTC) #16
jar (doing other things)
https://codereview.chromium.org/14827002/diff/22001/media/base/scoped_histogram_timer.h File media/base/scoped_histogram_timer.h (right): https://codereview.chromium.org/14827002/diff/22001/media/base/scoped_histogram_timer.h#newcode25 media/base/scoped_histogram_timer.h:25: UMA_HISTOGRAM_TIMES(name, base::TimeTicks::Now() - constructed_); \ On 2013/05/14 15:55:43, Alexei ...
7 years, 7 months ago (2013-05-14 16:19:22 UTC) #17
DaleCurtis
jar: PTAL at histograms.xml to make sure I did that right. Thanks! https://codereview.chromium.org/14827002/diff/22001/media/base/scoped_histogram_timer.h File media/base/scoped_histogram_timer.h ...
7 years, 7 months ago (2013-05-15 01:30:31 UTC) #18
jar (doing other things)
The histogram.xml changes in patch 5 LGTM. Please consider the comment below before landing. https://codereview.chromium.org/14827002/diff/34001/media/audio/audio_output_controller.cc ...
7 years, 7 months ago (2013-05-15 01:47:49 UTC) #19
Alexei Svitkine (slow)
LGTM
7 years, 7 months ago (2013-05-15 14:35:42 UTC) #20
DaleCurtis
https://codereview.chromium.org/14827002/diff/34001/media/audio/audio_output_controller.cc File media/audio/audio_output_controller.cc (right): https://codereview.chromium.org/14827002/diff/34001/media/audio/audio_output_controller.cc#newcode339 media/audio/audio_output_controller.cc:339: base::TimeDelta::FromMilliseconds(1000), On 2013/05/15 01:47:49, jar wrote: > This only ...
7 years, 7 months ago (2013-05-15 17:32:23 UTC) #21
DaleCurtis
CQ'ing patch set 5. Depending on your answer to my Q, we can adjust the ...
7 years, 7 months ago (2013-05-15 20:48:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/14827002/34001
7 years, 7 months ago (2013-05-15 20:49:06 UTC) #23
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-15 21:05:13 UTC) #24
DaleCurtis
Whoops, elapsed has units TimeDelta not TimeTicks. Shame on me.
7 years, 7 months ago (2013-05-15 21:08:56 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/14827002/56001
7 years, 7 months ago (2013-05-15 21:09:16 UTC) #26
commit-bot: I haz the power
7 years, 7 months ago (2013-05-16 02:05:06 UTC) #27
Message was sent while issue was closed.
Change committed as 200414

Powered by Google App Engine
This is Rietveld 408576698