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

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

Issue 130423007: Cast:Updating logging stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 | « media/cast/logging/logging_impl.cc ('k') | media/cast/logging/logging_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 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 #ifndef MEDIA_CAST_LOGGING_LOGGING_STATS_H_ 5 #ifndef MEDIA_CAST_LOGGING_LOGGING_STATS_H_
6 #define MEDIA_CAST_LOGGING_LOGGING_STATS_H_ 6 #define MEDIA_CAST_LOGGING_LOGGING_STATS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/cast/logging/logging_defines.h" 10 #include "media/cast/logging/logging_defines.h"
(...skipping 29 matching lines...) Expand all
40 CastLoggingEvent event, 40 CastLoggingEvent event,
41 uint32 rtp_timestamp, 41 uint32 rtp_timestamp,
42 uint32 frame_id, 42 uint32 frame_id,
43 uint16 packet_id, 43 uint16 packet_id,
44 uint16 max_packet_id, 44 uint16 max_packet_id,
45 size_t size); 45 size_t size);
46 46
47 void InsertGenericEvent(const base::TimeTicks& time_of_event, 47 void InsertGenericEvent(const base::TimeTicks& time_of_event,
48 CastLoggingEvent event, int value); 48 CastLoggingEvent event, int value);
49 49
50 // Get log stats: some of the values, such as frame rate and bit rates are 50 FrameStatsMap GetFrameStatsData() const;
51 // computed at the time of the call.
52 const FrameStatsMap* GetFrameStatsData(const base::TimeTicks& now);
53 51
54 const PacketStatsMap* GetPacketStatsData(const base::TimeTicks& now); 52 PacketStatsMap GetPacketStatsData() const;
55 53
56 const GenericStatsMap* GetGenericStatsData(); 54 GenericStatsMap GetGenericStatsData() const;
57 55
58 private: 56 private:
59 void InsertBaseFrameEvent(const base::TimeTicks& time_of_event, 57 void InsertBaseFrameEvent(const base::TimeTicks& time_of_event,
60 CastLoggingEvent event, 58 CastLoggingEvent event,
61 uint32 frame_id, 59 uint32 frame_id,
62 uint32 rtp_timestamp); 60 uint32 rtp_timestamp);
63 61
64 FrameStatsMap frame_stats_; 62 FrameStatsMap frame_stats_;
65 PacketStatsMap packet_stats_; 63 PacketStatsMap packet_stats_;
66 GenericStatsMap generic_stats_; 64 GenericStatsMap generic_stats_;
67 // Every event has an individual start time
68 base::TimeTicks start_time_[kNumOfLoggingEvents];
69 // Keep track of event counts.
70 int counts_[kNumOfLoggingEvents];
71 65
72 DISALLOW_COPY_AND_ASSIGN(LoggingStats); 66 DISALLOW_COPY_AND_ASSIGN(LoggingStats);
73 }; 67 };
74 68
75 } // namespace cast 69 } // namespace cast
76 } // namespace media 70 } // namespace media
77 71
78 #endif // MEDIA_CAST_LOGGING_LOGGING_STATS_H_ 72 #endif // MEDIA_CAST_LOGGING_LOGGING_STATS_H_
79 73
OLDNEW
« no previous file with comments | « media/cast/logging/logging_impl.cc ('k') | media/cast/logging/logging_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698