LeviLamina
Loading...
Searching...
No Matches
PerfContextTracker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/PerfContextEvent.h"
7
8// auto generated forward declare list
9// clang-format off
11// clang-format on
12
13class PerfContextTracker {
14public:
15 // PerfContextTracker inner types declare
16 // clang-format off
17 class Duration;
18 class EventScope;
19 class Timer;
20 // clang-format on
21
22 // PerfContextTracker inner types define
23 class Duration {
24 public:
25 // member variables
26 // NOLINTBEGIN
29 // NOLINTEND
30
31 public:
32 // prevent constructor by default
33 Duration& operator=(Duration const&);
34 Duration(Duration const&);
35
36 public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~Duration();
40
41 virtual void reset();
42 // NOLINTEND
43
44 public:
45 // member functions
46 // NOLINTBEGIN
47 MCNAPI Duration();
48 // NOLINTEND
49
50 public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCNAPI void* $ctor();
54 // NOLINTEND
55
56 public:
57 // destructor thunk
58 // NOLINTBEGIN
59 MCNAPI void $dtor();
60 // NOLINTEND
61
62 public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCNAPI void $reset();
66
67
68 // NOLINTEND
69
70 public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75 };
76
77 class EventScope {
78 public:
79 // member variables
80 // NOLINTBEGIN
83 // NOLINTEND
84
85 public:
86 // prevent constructor by default
87 EventScope& operator=(EventScope const&);
88 EventScope(EventScope const&);
89 EventScope();
90
91 public:
92 // member functions
93 // NOLINTBEGIN
94 MCNAPI explicit EventScope(::PerfContextEvent eventType);
95
96 MCNAPI ~EventScope();
97 // NOLINTEND
98
99 public:
100 // constructor thunks
101 // NOLINTBEGIN
102 MCNAPI void* $ctor(::PerfContextEvent eventType);
103 // NOLINTEND
104
105 public:
106 // destructor thunk
107 // NOLINTBEGIN
108 MCNAPI void $dtor();
109 // NOLINTEND
110 };
111
112 class Timer : public ::PerfContextTracker::Duration {
113 public:
114 // member variables
115 // NOLINTBEGIN
118 // NOLINTEND
119
120 public:
121 // prevent constructor by default
122 Timer& operator=(Timer const&);
123 Timer(Timer const&);
124 Timer();
125
126 public:
127 // virtual functions
128 // NOLINTBEGIN
129 virtual void reset() /*override*/;
130
131 virtual ~Timer() /*override*/ = default;
132 // NOLINTEND
133
134 public:
135 // virtual function thunks
136 // NOLINTBEGIN
137 MCNAPI void $reset();
138
139
140 // NOLINTEND
141
142 public:
143 // vftables
144 // NOLINTBEGIN
145 MCNAPI static void** $vftable();
146 // NOLINTEND
147 };
148
149public:
150 // member variables
151 // NOLINTBEGIN
165 // NOLINTEND
166
167public:
168 // prevent constructor by default
169 PerfContextTracker& operator=(PerfContextTracker const&);
170 PerfContextTracker(PerfContextTracker const&);
171 PerfContextTracker();
172
173public:
174 // member functions
175 // NOLINTBEGIN
176 MCNAPI void _reset();
177
178 MCNAPI_C void _resetStats();
179
180 MCNAPI_C bool
181 _tryBeginContext(::std::string const& contextName, ::std::chrono::steady_clock::time_point const& now);
182
183 MCNAPI_C void _tryEndContext(::std::chrono::steady_clock::time_point const& now);
184
185 MCNAPI_C void _tryReport(::IMinecraftEventing& eventing, bool IsEcoFrameThrottled, int fpsThrottle);
186
187 MCNAPI_C bool _tryRestartContext(::std::chrono::steady_clock::time_point const& now);
188
189 MCNAPI_C void tick(
190 ::std::string const& currentContext,
191 uint clientCount,
192 uint renderDistance,
193 uint simDistance,
194 bool IsEcoFrameThrottled,
195 int fpsThrottle,
196 ::IMinecraftEventing& eventing
197 );
198 // NOLINTEND
199
200public:
201 // static functions
202 // NOLINTBEGIN
203 MCNAPI static ::PerfContextTracker& getInstance();
204 // NOLINTEND
205};
Definition IMinecraftEventing.h:137
Definition PerfContextTracker.h:23
static MCAPI void ** $vftable()
Definition PerfContextTracker.h:77
MCAPI void * $ctor(::PerfContextEvent eventType)
MCAPI EventScope(::PerfContextEvent eventType)
Definition PerfContextTracker.h:112
static MCAPI void ** $vftable()
MCAPI void _reset()
static MCAPI ::PerfContextTracker & getInstance()
Definition Alias.h:14