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

Side by Side Diff: media/cast/logging/stats_event_subscriber.h

Issue 270493003: Cast: Deduplicate event types in cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef MEDIA_CAST_LOGGING_STATS_EVENT_SUBSCRIBER_H_ 5 #ifndef MEDIA_CAST_LOGGING_STATS_EVENT_SUBSCRIBER_H_
6 #define MEDIA_CAST_LOGGING_STATS_EVENT_SUBSCRIBER_H_ 6 #define MEDIA_CAST_LOGGING_STATS_EVENT_SUBSCRIBER_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 enum CastStat { 77 enum CastStat {
78 // Capture frame rate. 78 // Capture frame rate.
79 CAPTURE_FPS, 79 CAPTURE_FPS,
80 // Encode frame rate. 80 // Encode frame rate.
81 ENCODE_FPS, 81 ENCODE_FPS,
82 // Decode frame rate. 82 // Decode frame rate.
83 DECODE_FPS, 83 DECODE_FPS,
84 // Average encode duration in milliseconds. 84 // Average encode duration in milliseconds.
85 // TODO(imcheng): This stat is not populated yet because we do not have 85 // TODO(imcheng): This stat is not populated yet because we do not have
86 // the time when encode started. Record it in kVideoFrameEncoded event. 86 // the time when encode started. Record it in FRAME_ENCODED event.
87 AVG_ENCODE_TIME_MS, 87 AVG_ENCODE_TIME_MS,
88 // Average playout delay in milliseconds, with target delay already 88 // Average playout delay in milliseconds, with target delay already
89 // accounted for. Ideally, every frame should have a playout delay of 0. 89 // accounted for. Ideally, every frame should have a playout delay of 0.
90 AVG_PLAYOUT_DELAY_MS, 90 AVG_PLAYOUT_DELAY_MS,
91 // Duration from when a packet is transmitted to when it is received. 91 // Duration from when a packet is transmitted to when it is received.
92 // This measures latency from sender to receiver. 92 // This measures latency from sender to receiver.
93 AVG_NETWORK_LATENCY_MS, 93 AVG_NETWORK_LATENCY_MS,
94 // Duration from when a frame is captured to when it should be played out. 94 // Duration from when a frame is captured to when it should be played out.
95 AVG_E2E_LATENCY_MS, 95 AVG_E2E_LATENCY_MS,
96 // Encode bitrate in kbps. 96 // Encode bitrate in kbps.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 base::TimeTicks start_time_; 167 base::TimeTicks start_time_;
168 168
169 base::ThreadChecker thread_checker_; 169 base::ThreadChecker thread_checker_;
170 DISALLOW_COPY_AND_ASSIGN(StatsEventSubscriber); 170 DISALLOW_COPY_AND_ASSIGN(StatsEventSubscriber);
171 }; 171 };
172 172
173 } // namespace cast 173 } // namespace cast
174 } // namespace media 174 } // namespace media
175 175
176 #endif // MEDIA_CAST_LOGGING_STATS_EVENT_SUBSCRIBER_H_ 176 #endif // MEDIA_CAST_LOGGING_STATS_EVENT_SUBSCRIBER_H_
OLDNEW
« no previous file with comments | « media/cast/logging/simple_event_subscriber_unittest.cc ('k') | media/cast/logging/stats_event_subscriber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698