| Index: remoting/client/plugin/chromoting_instance.cc
|
| diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
|
| index c32d31ded27bcd4d333f047d9af82c1536d5442a..df2f4f0a4022446ac4c6ecadb9cc80fe28a3b378 100644
|
| --- a/remoting/client/plugin/chromoting_instance.cc
|
| +++ b/remoting/client/plugin/chromoting_instance.cc
|
| @@ -19,6 +19,7 @@
|
| #include "base/json/json_writer.h"
|
| #include "base/lazy_instance.h"
|
| #include "base/logging.h"
|
| +#include "base/metrics/histogram_macros.h"
|
| #include "base/strings/string_split.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/synchronization/lock.h"
|
| @@ -1064,6 +1065,11 @@ void ChromotingInstance::SendPerfStats() {
|
| data->SetDouble("renderLatency", stats->video_paint_ms()->Average());
|
| data->SetDouble("roundtripLatency", stats->round_trip_ms()->Average());
|
| PostLegacyJsonMessage("onPerfStats", data.Pass());
|
| + // Also update UMA histograms for video frame-rate and bandwidth.
|
| + UMA_HISTOGRAM_COUNTS("Chromoting.Video.FrameRate",
|
| + stats->video_frame_rate()->Rate());
|
| + UMA_HISTOGRAM_COUNTS("Chromoting.Video.Bandwidth",
|
| + stats->video_bandwidth()->Rate());
|
| }
|
|
|
| // static
|
|
|