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
This commit is contained in:
parent
d2bcde2e4e
commit
f222a00881
@ -27,6 +27,7 @@
|
|||||||
#include "modules/video_coding/codecs/vp8/reference_picture_selection.h"
|
#include "modules/video_coding/codecs/vp8/reference_picture_selection.h"
|
||||||
#include "modules/video_coding/codecs/vp8/temporal_layers.h"
|
#include "modules/video_coding/codecs/vp8/temporal_layers.h"
|
||||||
#include "system_wrappers/interface/tick_util.h"
|
#include "system_wrappers/interface/tick_util.h"
|
||||||
|
#include "system_wrappers/interface/trace_event.h"
|
||||||
|
|
||||||
enum { kVp8ErrorPropagationTh = 30 };
|
enum { kVp8ErrorPropagationTh = 30 };
|
||||||
|
|
||||||
@ -384,6 +385,9 @@ int VP8EncoderImpl::Encode(const I420VideoFrame& input_image,
|
|||||||
input_image.timestamp());
|
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
|
// 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
|
// 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
|
// would like to use the duration of the previous frame. Unfortunately the
|
||||||
|
@ -335,7 +335,6 @@ LOCAL_STATIC_LIBRARIES := \
|
|||||||
libsignal_processing \
|
libsignal_processing \
|
||||||
libsignal_processing_neon \
|
libsignal_processing_neon \
|
||||||
libcommon_video \
|
libcommon_video \
|
||||||
libsystem_wrappers \
|
|
||||||
libcpu_features_android \
|
libcpu_features_android \
|
||||||
libaudio_device \
|
libaudio_device \
|
||||||
libremote_bitrate_estimator \
|
libremote_bitrate_estimator \
|
||||||
@ -347,6 +346,7 @@ LOCAL_STATIC_LIBRARIES := \
|
|||||||
libyuv \
|
libyuv \
|
||||||
libwebrtc_i420 \
|
libwebrtc_i420 \
|
||||||
libwebrtc_vp8 \
|
libwebrtc_vp8 \
|
||||||
|
libsystem_wrappers \
|
||||||
libjpeg_turbo \
|
libjpeg_turbo \
|
||||||
libaudioproc_debug_proto \
|
libaudioproc_debug_proto \
|
||||||
libprotobuf_lite \
|
libprotobuf_lite \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user