diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-19 01:21:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-19 01:21:15 +0100 |
| commit | d482f805bc113ddf4c504e86125c648113321c8a (patch) | |
| tree | 0be2f15cd7f5462c7ad728eb75f1530ac41f0520 /src/lib/dcp_video.cc | |
| parent | c450fb19ea21dba0a6cade81e829262e7078e9df (diff) | |
Some work on rationalising and tidying up timing logging.
Diffstat (limited to 'src/lib/dcp_video.cc')
| -rw-r--r-- | src/lib/dcp_video.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index 5b5edba95..7d060b30d 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -51,6 +51,7 @@ #define LOG_GENERAL(...) _log->log (String::compose (__VA_ARGS__), Log::TYPE_GENERAL); #define LOG_DEBUG_ENCODE(...) _log->log (String::compose (__VA_ARGS__), Log::TYPE_DEBUG_ENCODE); +#define LOG_TIMING(...) _log->microsecond_log (String::compose (__VA_ARGS__), Log::TYPE_TIMING); #include "i18n.h" @@ -265,13 +266,17 @@ DCPVideo::encode_remotely (ServerDescription serv) socket->write ((uint8_t *) xml.c_str(), xml.length() + 1); /* Send binary data */ + LOG_TIMING("start-remote-send thread=%1", boost::this_thread::get_id()); _frame->send_binary (socket); + LOG_TIMING("finish-remote-send thread=%1", boost::this_thread::get_id()); /* Read the response (JPEG2000-encoded data); this blocks until the data is ready and sent back. */ + LOG_TIMING("start-remote-encode-and-receive thread=%1", boost::this_thread::get_id ()); Data e (socket->read_uint32 ()); socket->read (e.data().get(), e.size()); + LOG_TIMING("finish-remote-encode-and-receive thread=%1", boost::this_thread::get_id ()); LOG_DEBUG_ENCODE (N_("Finished remotely-encoded frame %1"), _index); |
