LeviLamina
Loading...
Searching...
No Matches
RateTracker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace rtc {
6
8public:
9 // member variables
10 // NOLINTBEGIN
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
22 RateTracker& operator=(RateTracker const&);
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ~RateTracker();
31
32 // vIndex: 1
33 virtual int64 Time() const;
34 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCNAPI void AddSamples(int64 sample_count);
40
41 MCNAPI void AddSamplesAtTime(int64 current_time_ms, int64 sample_count);
42
43 MCNAPI double ComputeRateForInterval(int64 interval_milliseconds) const;
44
45 MCNAPI void EnsureInitialized();
46
47 MCNAPI uint64 NextBucketIndex(uint64 bucket_index) const;
48
49 MCNAPI RateTracker(int64 bucket_milliseconds, uint64 bucket_count);
50
51 MCNAPI int64 TotalSampleCount() const;
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCNAPI void* $ctor(int64 bucket_milliseconds, uint64 bucket_count);
58 // NOLINTEND
59
60public:
61 // destructor thunk
62 // NOLINTBEGIN
63 MCNAPI void $dtor();
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCNAPI int64 $Time() const;
70 // NOLINTEND
71
72public:
73 // vftables
74 // NOLINTBEGIN
75 MCNAPI static void** $vftable();
76 // NOLINTEND
77};
78
79} // namespace rtc
Definition RateTracker.h:7
MCAPI void AddSamplesAtTime(int64 current_time_ms, int64 sample_count)
static MCAPI void ** $vftable()
MCAPI int64 $Time() const
MCAPI void EnsureInitialized()
MCAPI void $dtor()
MCAPI void AddSamples(int64 sample_count)
MCAPI void * $ctor(int64 bucket_milliseconds, uint64 bucket_count)
MCAPI int64 TotalSampleCount() const
MCAPI RateTracker(int64 bucket_milliseconds, uint64 bucket_count)
MCAPI uint64 NextBucketIndex(uint64 bucket_index) const
MCAPI double ComputeRateForInterval(int64 interval_milliseconds) const
Definition Alias.h:14