diff options
author | dalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-16 02:05:03 +0000 |
---|---|---|
committer | dalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-16 02:05:03 +0000 |
commit | 6c0c5b1a4af33c488ace8b19efe987c66990f76d (patch) | |
tree | ce66221b212084e3e75366037a84280ac4e6852a /media/base/scoped_histogram_timer_unittest.cc | |
parent | 47cb253f15ca0e9dfcef8dd4b42bb5bc443c522f (diff) | |
download | chromium_src-6c0c5b1a4af33c488ace8b19efe987c66990f76d.zip chromium_src-6c0c5b1a4af33c488ace8b19efe987c66990f76d.tar.gz chromium_src-6c0c5b1a4af33c488ace8b19efe987c66990f76d.tar.bz2 |
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.
Review URL: https://chromiumcodereview.appspot.com/14827002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200414 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/scoped_histogram_timer_unittest.cc')
-rw-r--r-- | media/base/scoped_histogram_timer_unittest.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/media/base/scoped_histogram_timer_unittest.cc b/media/base/scoped_histogram_timer_unittest.cc new file mode 100644 index 0000000..191a577 --- /dev/null +++ b/media/base/scoped_histogram_timer_unittest.cc @@ -0,0 +1,16 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "base/time.h" +#include "media/base/scoped_histogram_timer.h" +#include "testing/gtest/include/gtest/gtest.h" + +namespace media { + +TEST(ScopedHistogramTimer, TwoTimersOneScope) { + SCOPED_UMA_HISTOGRAM_TIMER("TestTimer0"); + SCOPED_UMA_HISTOGRAM_TIMER("TestTimer1"); +} + +} // namespace media
\ No newline at end of file |