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

Side by Side Diff: media/cast/logging/logging_defines.cc

Issue 134843005: Cast:Updating logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "media/cast/logging/logging_defines.h" 5 #include "media/cast/logging/logging_defines.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 namespace cast { 10 namespace cast {
11 11
12 CastLoggingConfig::CastLoggingConfig() 12 CastLoggingConfig::CastLoggingConfig()
13 : enable_data_collection(false), 13 : enable_raw_data_collection(false),
14 enable_stats_data_collection(false),
14 enable_uma_stats(false), 15 enable_uma_stats(false),
15 enable_tracing(false) {} 16 enable_tracing(false) {}
16 17
17 CastLoggingConfig::~CastLoggingConfig() {} 18 CastLoggingConfig::~CastLoggingConfig() {}
18 19
19 CastLoggingConfig GetDefaultCastLoggingConfig() { 20 CastLoggingConfig GetDefaultCastLoggingConfig() {
20 CastLoggingConfig config; 21 CastLoggingConfig config;
21 return config; 22 return config;
22 } 23 }
23 24
24 std::string CastLoggingToString(CastLoggingEvent event) { 25 std::string CastLoggingToString(CastLoggingEvent event) {
25 switch (event) { 26 switch (event) {
26 case(kUnknown): 27 case(kUnknown):
27 // Can happen if the sender and receiver of RTCP log messages are not 28 // Can happen if the sender and receiver of RTCP log messages are not
28 // aligned. 29 // aligned.
29 return "Unknown"; 30 return "Unknown";
30 case(kRttMs): 31 case(kRttMs):
31 return "RttMs"; 32 return "RttMs";
32 case(kPacketLoss): 33 case(kPacketLoss):
33 return "PacketLoss"; 34 return "PacketLoss";
34 case(kJitterMs): 35 case(kJitterMs):
35 return "JitterMs"; 36 return "JitterMs";
36 case(kAckReceived): 37 case(kAckReceived):
37 return "AckReceived"; 38 return "AckReceived";
38 case(kRembBitrate): 39 case(kRembBitrate):
39 return "RembBitrate"; 40 return "RembBitrate";
40 case(kAckSent): 41 case(kAckSent):
41 return "AckSent"; 42 return "AckSent";
42 case(kLastEvent):
43 return "LastEvent";
44 case(kAudioFrameReceived): 43 case(kAudioFrameReceived):
45 return "AudioFrameReceived"; 44 return "AudioFrameReceived";
46 case(kAudioFrameCaptured): 45 case(kAudioFrameCaptured):
47 return "AudioFrameCaptured"; 46 return "AudioFrameCaptured";
48 case(kAudioFrameEncoded): 47 case(kAudioFrameEncoded):
49 return "AudioFrameEncoded"; 48 return "AudioFrameEncoded";
50 case(kAudioPlayoutDelay): 49 case(kAudioPlayoutDelay):
51 return "AudioPlayoutDelay"; 50 return "AudioPlayoutDelay";
52 case(kAudioFrameDecoded): 51 case(kAudioFrameDecoded):
53 return "AudioFrameDecoded"; 52 return "AudioFrameDecoded";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 FrameLogStats::FrameLogStats() 93 FrameLogStats::FrameLogStats()
95 : framerate_fps(0), 94 : framerate_fps(0),
96 bitrate_kbps(0), 95 bitrate_kbps(0),
97 max_delay_ms(0), 96 max_delay_ms(0),
98 min_delay_ms(0), 97 min_delay_ms(0),
99 avg_delay_ms(0) {} 98 avg_delay_ms(0) {}
100 FrameLogStats::~FrameLogStats() {} 99 FrameLogStats::~FrameLogStats() {}
101 100
102 } // namespace cast 101 } // namespace cast
103 } // namespace media 102 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698