Update timing dump and tools

This commit is contained in:
Patrick Nicolas
2023-12-16 14:16:46 +01:00
committed by Guillaume Meunier
parent 7e22b3fa92
commit 1792607ada
4 changed files with 45 additions and 169 deletions
+3 -1
View File
@@ -114,7 +114,7 @@ void VideoEncoder::SendData(std::span<uint8_t> data, bool end_of_frame)
debug.write((char*)data.data(), data.size());
#endif
if (shard.shard_idx == 0)
cnx->dump_time("send_start", shard.frame_idx, os_monotonic_get_ns(), stream_idx);
cnx->dump_time("send_begin", shard.frame_idx, os_monotonic_get_ns(), stream_idx);
shard.flags = to_headset::video_stream_data_shard::start_of_slice;
auto begin = data.begin();
@@ -137,6 +137,8 @@ void VideoEncoder::SendData(std::span<uint8_t> data, bool end_of_frame)
shard.view_info.reset();
begin = next;
}
if (end_of_frame)
cnx->dump_time("send_end", shard.frame_idx, os_monotonic_get_ns(), stream_idx);
}
} // namespace xrt::drivers::wivrn
+2 -2
View File
@@ -208,11 +208,11 @@ void wivrn_session::operator()(from_headset::feedback && feedback)
comp_target->on_feedback(feedback, o);
if (feedback.received_first_packet)
dump_time("receive_start", feedback.frame_index, o.from_headset(feedback.received_first_packet), feedback.stream_index);
dump_time("receive_begin", feedback.frame_index, o.from_headset(feedback.received_first_packet), feedback.stream_index);
if (feedback.received_last_packet)
dump_time("receive_end", feedback.frame_index, o.from_headset(feedback.received_last_packet), feedback.stream_index);
if (feedback.sent_to_decoder)
dump_time("decode_start", feedback.frame_index, o.from_headset(feedback.sent_to_decoder), feedback.stream_index);
dump_time("decode_begin", feedback.frame_index, o.from_headset(feedback.sent_to_decoder), feedback.stream_index);
if (feedback.received_from_decoder)
dump_time("decode_end", feedback.frame_index, o.from_headset(feedback.received_from_decoder), feedback.stream_index);
if (feedback.blitted)