Commit f685b2db authored by David Staessens's avatar David Staessens Committed by Commit Bot

media/gpu/test: Improve readability of video decoder performance test output.

To improve the readability of performance metrics printed on the command line
when running the video_decode_accelerator_perf_tests, this CL makes change to
use std::cout instead of VLOG(0).

TEST=ran new VDA perf tests on eve

BUG=953114

Change-Id: I13d2e246dc86af56461c488546a88053d4e56755
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635121
Commit-Queue: David Staessens <dstaessens@chromium.org>
Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665469}
parent 6612a13c
......@@ -166,16 +166,21 @@ void PerformanceEvaluator::StopMeasuring() {
frame_decode_times_[median_index]) /
2.0;
VLOG(0) << "Frames decoded: " << perf_metrics_.frames_decoded_;
VLOG(0) << "Total duration: "
<< perf_metrics_.total_duration_.InMillisecondsF() << "ms";
VLOG(0) << "FPS: " << perf_metrics_.frames_per_second_;
VLOG(0) << "Frames Dropped: " << perf_metrics_.frames_dropped_;
VLOG(0) << "Dropped frame rate: " << perf_metrics_.dropped_frame_rate_;
VLOG(0) << "Avg. frame delivery time: "
<< perf_metrics_.avg_frame_delivery_time_ms_ << "ms";
VLOG(0) << "Median frame decode time: "
<< perf_metrics_.median_frame_decode_time_ms_ << "ms";
std::cout << "Frames decoded: " << perf_metrics_.frames_decoded_
<< std::endl;
std::cout << "Total duration: "
<< perf_metrics_.total_duration_.InMillisecondsF() << "ms"
<< std::endl;
std::cout << "FPS: " << perf_metrics_.frames_per_second_
<< std::endl;
std::cout << "Frames Dropped: " << perf_metrics_.frames_dropped_
<< std::endl;
std::cout << "Dropped frame rate: " << perf_metrics_.dropped_frame_rate_
<< std::endl;
std::cout << "Avg. frame delivery time: "
<< perf_metrics_.avg_frame_delivery_time_ms_ << "ms" << std::endl;
std::cout << "Median frame decode time: "
<< perf_metrics_.median_frame_decode_time_ms_ << "ms" << std::endl;
}
void PerformanceEvaluator::WriteMetricsToFile() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment