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

Side by Side Diff: remoting/client/chromoting_stats.h

Issue 6792038: Chromoting to report roundtrip latency (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: done Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/chromoting_stats.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ChromotingStats defines a bundle of performance counters and statistics 5 // ChromotingStats defines a bundle of performance counters and statistics
6 // for chromoting. 6 // for chromoting.
7 7
8 #ifndef REMOTING_CLIENT_CHROMOTING_STATS_H_ 8 #ifndef REMOTING_CLIENT_CHROMOTING_STATS_H_
9 #define REMOTING_CLIENT_CHROMOTING_STATS_H_ 9 #define REMOTING_CLIENT_CHROMOTING_STATS_H_
10 10
11 #include "remoting/base/rate_counter.h" 11 #include "remoting/base/rate_counter.h"
12 #include "remoting/base/running_average.h" 12 #include "remoting/base/running_average.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 class ChromotingStats { 16 class ChromotingStats {
17 public: 17 public:
18 ChromotingStats(); 18 ChromotingStats();
19 virtual ~ChromotingStats(); 19 virtual ~ChromotingStats();
20 20
21 RateCounter* video_bandwidth() { return &video_bandwidth_; } 21 RateCounter* video_bandwidth() { return &video_bandwidth_; }
22 RunningAverage* video_capture_ms() { return &video_capture_ms_; } 22 RunningAverage* video_capture_ms() { return &video_capture_ms_; }
23 RunningAverage* video_encode_ms() { return &video_encode_ms_; } 23 RunningAverage* video_encode_ms() { return &video_encode_ms_; }
24 RunningAverage* video_decode_ms() { return &video_decode_ms_; } 24 RunningAverage* video_decode_ms() { return &video_decode_ms_; }
25 RunningAverage* video_paint_ms() { return &video_paint_ms_; } 25 RunningAverage* video_paint_ms() { return &video_paint_ms_; }
26 RunningAverage* round_trip_ms() { return &round_trip_ms_; }
26 27
27 private: 28 private:
28 RateCounter video_bandwidth_; 29 RateCounter video_bandwidth_;
29 RunningAverage video_capture_ms_; 30 RunningAverage video_capture_ms_;
30 RunningAverage video_encode_ms_; 31 RunningAverage video_encode_ms_;
31 RunningAverage video_decode_ms_; 32 RunningAverage video_decode_ms_;
32 RunningAverage video_paint_ms_; 33 RunningAverage video_paint_ms_;
34 RunningAverage round_trip_ms_;
33 35
34 DISALLOW_COPY_AND_ASSIGN(ChromotingStats); 36 DISALLOW_COPY_AND_ASSIGN(ChromotingStats);
35 }; 37 };
36 38
37 } // namespace remoting 39 } // namespace remoting
38 40
39 #endif // REMOTING_CLIENT_CHROMOTING_STATS_H_ 41 #endif // REMOTING_CLIENT_CHROMOTING_STATS_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/chromoting_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698