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

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: JS compiler fix and lld fix 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..dd075a82ac7847c6f8cbe30fa3be1c3fe321b86d 100644
--- a/remoting/client/jni/chromoting_jni_instance.cc
+++ b/remoting/client/jni/chromoting_jni_instance.cc
@@ -11,6 +11,7 @@
#include "base/bind.h"
#include "base/callback_helpers.h"
+#include "base/format_macros.h"
#include "base/logging.h"
#include "jingle/glue/thread_wrapper.h"
#include "net/socket/client_socket_factory.h"
@@ -484,12 +485,20 @@ 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, %" PRId64 " Encode:%.1f, %" PRId64
+ " Decode:%.1f, %" PRId64 " Render:%.1f, %" PRId64 " RTL:%.0f, %" PRId64,
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());
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