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
3 // found in the LICENSE file.
5 #ifndef MEDIA_CAST_LOGGING_LOGGING_STATS_H_
6 #define MEDIA_CAST_LOGGING_LOGGING_STATS_H_
8 #include "base/basictypes.h"
9 #include "base/time/time.h"
10 #include "media/cast/logging/logging_defines.h"
22 void InsertFrameEvent(const base::TimeTicks
& time_of_event
,
23 CastLoggingEvent event
,
27 void InsertFrameEventWithSize(const base::TimeTicks
& time_of_event
,
28 CastLoggingEvent event
,
33 void InsertFrameEventWithDelay(const base::TimeTicks
& time_of_event
,
34 CastLoggingEvent event
,
37 base::TimeDelta delay
);
39 void InsertPacketEvent(const base::TimeTicks
& time_of_event
,
40 CastLoggingEvent event
,
47 void InsertGenericEvent(const base::TimeTicks
& time_of_event
,
48 CastLoggingEvent event
, int value
);
50 FrameStatsMap
GetFrameStatsData() const;
52 PacketStatsMap
GetPacketStatsData() const;
54 GenericStatsMap
GetGenericStatsData() const;
57 void InsertBaseFrameEvent(const base::TimeTicks
& time_of_event
,
58 CastLoggingEvent event
,
60 uint32 rtp_timestamp
);
62 FrameStatsMap frame_stats_
;
63 PacketStatsMap packet_stats_
;
64 GenericStatsMap generic_stats_
;
66 DISALLOW_COPY_AND_ASSIGN(LoggingStats
);
72 #endif // MEDIA_CAST_LOGGING_LOGGING_STATS_H_