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