Add missing 'gpu_tests' config to MB, fix typo in MB.
[chromium-blink-merge.git] / remoting / client / chromoting_stats.cc
blob01c67df81751d4b9beffd41388b32c3f4dcd41d7
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "remoting/client/chromoting_stats.h"
7 namespace {
9 // We take the last 10 latency numbers and report the average.
10 const int kLatencySampleSize = 10;
12 } // namespace
14 namespace remoting {
16 ChromotingStats::ChromotingStats()
17 : video_bandwidth_(
18 base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds)),
19 video_frame_rate_(
20 base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds)),
21 video_packet_rate_(
22 base::TimeDelta::FromSeconds(kStatsUpdateFrequencyInSeconds)),
23 video_capture_ms_(kLatencySampleSize),
24 video_encode_ms_(kLatencySampleSize),
25 video_decode_ms_(kLatencySampleSize),
26 video_paint_ms_(kLatencySampleSize),
27 round_trip_ms_(kLatencySampleSize) {
30 ChromotingStats::~ChromotingStats() {
33 } // namespace remoting