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

Unified Diff: media/audio/audio_input_controller.cc

Issue 2458973002: Audio input traces for Mac (browser-side) (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/media/audio_input_sync_writer.cc ('k') | media/audio/mac/audio_input_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_controller.cc
diff --git a/media/audio/audio_input_controller.cc b/media/audio/audio_input_controller.cc
index 5122a5940c42deef81ac32188cf02351546d59eb..6391c9e10b2a6b30be28d8ce6d99952ac7a1a9ee 100644
--- a/media/audio/audio_input_controller.cc
+++ b/media/audio/audio_input_controller.cc
@@ -16,6 +16,7 @@
#include "base/threading/thread_restrictions.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
+#include "base/trace_event/trace_event.h"
#include "media/audio/audio_input_writer.h"
#include "media/base/user_input_monitor.h"
@@ -419,6 +420,7 @@ void AudioInputController::OnData(AudioInputStream* stream,
const AudioBus* source,
uint32_t hardware_delay_bytes,
double volume) {
+ TRACE_EVENT0("audio", "AudioInputController::OnData");
if (debug_writer_ && debug_writer_->WillWrite()) {
std::unique_ptr<AudioBus> source_copy =
AudioBus::Create(source->channels(), source->frames());
« no previous file with comments | « content/browser/renderer_host/media/audio_input_sync_writer.cc ('k') | media/audio/mac/audio_input_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698