Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: remoting/client/jni/chromoting_jni_instance.cc

Issue 1811833002: Show max latency on client's status bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Remoting WebApp]Show and upload max capture/encode/render/roundtrip latency Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/running_samples_unittest.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/chromoting_jni_instance.cc
diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc
index 7d8b7f8a4f5b940e22ebe21fc6f5a886b9c312a9..ca6cfc5f3a7f93ce4bb204b18f9b49a435058718 100644
--- a/remoting/client/jni/chromoting_jni_instance.cc
+++ b/remoting/client/jni/chromoting_jni_instance.cc
@@ -484,12 +484,21 @@ void ChromotingJniInstance::LogPerfStats() {
__android_log_print(
ANDROID_LOG_INFO, "stats",
- "Bandwidth:%.0f FrameRate:%.1f Capture:%.1f Encode:%.1f "
- "Decode:%.1f Render:%.1f Latency:%.0f",
+ "Bandwidth:%.0f FrameRate:%.1f; "
+ "(Avg, Max) Capture:%.1f, %lld Encode:%.1f, %lld Decode:%.1f, %lld "
+ "Render:%.1f, %lld RTL:%.0f, %lld",
perf_tracker_->video_bandwidth(), perf_tracker_->video_frame_rate(),
- perf_tracker_->video_capture_ms(), perf_tracker_->video_encode_ms(),
- perf_tracker_->video_decode_ms(), perf_tracker_->video_paint_ms(),
- perf_tracker_->round_trip_ms());
+ perf_tracker_->video_capture_ms().Average(),
+ perf_tracker_->video_capture_ms().Max(),
+ perf_tracker_->video_encode_ms().Average(),
+ perf_tracker_->video_encode_ms().Max(),
+ perf_tracker_->video_decode_ms().Average(),
+ perf_tracker_->video_decode_ms().Max(),
+ perf_tracker_->video_paint_ms().Average(),
+ perf_tracker_->video_paint_ms().Max(),
+ perf_tracker_->round_trip_ms().Average(),
+ perf_tracker_->round_trip_ms().Max()
+ );
Sergey Ulanov 2016/03/22 00:08:03 nit: move this to the previous line, or run clang-
client_status_logger_->LogStatistics(perf_tracker_.get());
« no previous file with comments | « remoting/base/running_samples_unittest.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698