From f222a0088149f5904c2bcb2c7440c003fb04c1f1 Mon Sep 17 00:00:00 2001 From: "hclam@chromium.org" Date: Tue, 11 Dec 2012 22:27:55 +0000 Subject: [PATCH] Use TRACE_EVENT to track time spent in VP8 encoding Using the TRACE_EVENT macro to log VP8 encoding events. Review URL: https://webrtc-codereview.appspot.com/968011 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3264 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc | 4 ++++ webrtc/video_engine/test/android/jni/Android.mk | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc index 038722568..324e3a268 100644 --- a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc +++ b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc @@ -27,6 +27,7 @@ #include "modules/video_coding/codecs/vp8/reference_picture_selection.h" #include "modules/video_coding/codecs/vp8/temporal_layers.h" #include "system_wrappers/interface/tick_util.h" +#include "system_wrappers/interface/trace_event.h" enum { kVp8ErrorPropagationTh = 30 }; @@ -384,6 +385,9 @@ int VP8EncoderImpl::Encode(const I420VideoFrame& input_image, input_image.timestamp()); } + TRACE_EVENT1("video_coding", "VP8EncoderImpl::Encode", + "input_image_timestamp", input_image.timestamp()); + // TODO(holmer): Ideally the duration should be the timestamp diff of this // frame and the next frame to be encoded, which we don't have. Instead we // would like to use the duration of the previous frame. Unfortunately the diff --git a/webrtc/video_engine/test/android/jni/Android.mk b/webrtc/video_engine/test/android/jni/Android.mk index b3c0822bc..4f5dd8943 100644 --- a/webrtc/video_engine/test/android/jni/Android.mk +++ b/webrtc/video_engine/test/android/jni/Android.mk @@ -335,7 +335,6 @@ LOCAL_STATIC_LIBRARIES := \ libsignal_processing \ libsignal_processing_neon \ libcommon_video \ - libsystem_wrappers \ libcpu_features_android \ libaudio_device \ libremote_bitrate_estimator \ @@ -347,6 +346,7 @@ LOCAL_STATIC_LIBRARIES := \ libyuv \ libwebrtc_i420 \ libwebrtc_vp8 \ + libsystem_wrappers \ libjpeg_turbo \ libaudioproc_debug_proto \ libprotobuf_lite \