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

Unified Diff: media/video/capture/android/video_capture_device_android.cc

Issue 98773003: Add performance tracing event to VideoCaptureDeviceAndroid::OnFrameAvailable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/android/video_capture_device_android.cc
diff --git a/media/video/capture/android/video_capture_device_android.cc b/media/video/capture/android/video_capture_device_android.cc
index adfa9a3455c12bf5293b8fd1aae87a5a965a472c..7eeffbe0b11bf8c9b8cf157bc4004f1a552148d4 100644
--- a/media/video/capture/android/video_capture_device_android.cc
+++ b/media/video/capture/android/video_capture_device_android.cc
@@ -9,6 +9,7 @@
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
+#include "base/debug/trace_event.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "jni/VideoCapture_jni.h"
@@ -196,6 +197,7 @@ void VideoCaptureDeviceAndroid::OnFrameAvailable(
jbyteArray data,
jint length,
jint rotation) {
+ TRACE_EVENT0("video", "VideoCaptureDeviceAndroid::OnFrameAvailable");
tommi (sloooow) - chröme 2013/12/18 14:01:33 Since Android is very sensitive to performance I h
mcasas 2013/12/18 14:32:36 Well, nothing comes for free. From the docs: " Tr
tommi (sloooow) - chröme 2013/12/18 15:14:33 That's good enough for me. I know how this is imp
DVLOG(3) << "VideoCaptureDeviceAndroid::OnFrameAvailable: length =" << length;
base::AutoLock lock(lock_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698