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/platform/brstd/function_ref.h"
7#include "mc/util/PerfContextEvent.h"
8
9// auto generated forward declare list
10// clang-format off
13// clang-format on
14
15class PerfContextTracker {
16public:
17 // PerfContextTracker inner types declare
18 // clang-format off
19 class Duration;
20 class EventScope;
21 class Timer;
22 // clang-format on
23
24 // PerfContextTracker inner types define
25 class Duration {
26 public:
27 // member variables
28 // NOLINTBEGIN
31 // NOLINTEND
32
33 public:
34 // prevent constructor by default
35 Duration& operator=(Duration const&);
36 Duration(Duration const&);
37 Duration();
38
39 public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~Duration() = default;
43
44 virtual void reset();
45 // NOLINTEND
46
47 public:
48 // virtual function thunks
49 // NOLINTBEGIN
50 MCNAPI void $reset();
51
52
53 // NOLINTEND
54
55 public:
56 // vftables
57 // NOLINTBEGIN
58 MCNAPI static void** $vftable();
59 // NOLINTEND
60 };
61
62 class EventScope {
63 public:
64 // member variables
65 // NOLINTBEGIN
68 // NOLINTEND
69
70 public:
71 // prevent constructor by default
72 EventScope& operator=(EventScope const&);
73 EventScope(EventScope const&);
74 EventScope();
75
76 public:
77 // member functions
78 // NOLINTBEGIN
79 MCNAPI explicit EventScope(::PerfContextEvent eventType);
80
81 MCNAPI ~EventScope();
82 // NOLINTEND
83
84 public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCNAPI void* $ctor(::PerfContextEvent eventType);
88 // NOLINTEND
89
90 public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCNAPI void $dtor();
94 // NOLINTEND
95 };
96
97 class Timer : public ::PerfContextTracker::Duration {
98 public:
99 // member variables
100 // NOLINTBEGIN
103 // NOLINTEND
104
105 public:
106 // prevent constructor by default
107 Timer& operator=(Timer const&);
108 Timer(Timer const&);
109 Timer();
110
111 public:
112 // virtual functions
113 // NOLINTBEGIN
114 virtual void reset() /*override*/;
115 // NOLINTEND
116
117 public:
118 // virtual function thunks
119 // NOLINTBEGIN
120 MCNAPI void $reset();
121
122
123 // NOLINTEND
124
125 public:
126 // vftables
127 // NOLINTBEGIN
128 MCNAPI static void** $vftable();
129 // NOLINTEND
130 };
131
132public:
133 // member variables
134 // NOLINTBEGIN
149 // NOLINTEND
150
151public:
152 // prevent constructor by default
153 PerfContextTracker& operator=(PerfContextTracker const&);
154 PerfContextTracker(PerfContextTracker const&);
155
156public:
157 // member functions
158 // NOLINTBEGIN
160
161#ifdef LL_PLAT_C
162 MCNAPI bool _tryBeginContext(::std::string const& contextName, ::std::chrono::steady_clock::time_point const& now);
163
164 MCNAPI void _tryEndContext(::std::chrono::steady_clock::time_point const& now);
165
166 MCNAPI bool _tryRestartContext(::std::chrono::steady_clock::time_point const& now);
167
168 MCNAPI void clear();
169#endif
170
171 MCNAPI void incrementPacketReceivedInfo(uint packetSize);
172
173 MCNAPI void incrementPacketSentInfo(uint packetSize);
174
175#ifdef LL_PLAT_C
176 MCNAPI void onAppResume();
177
178 MCNAPI void onAppSuspend();
179
180 MCNAPI void setActorRenderCount(int actorRenderCount);
181
182 MCNAPI void
183 setFrameAnomalyEventing(::std::function<::std::optional<::FrameAnomalyDetectorSummary>()> summaryProvider);
184#endif
185
186 MCNAPI void setMobCount(uint mobCount);
187
188#ifdef LL_PLAT_C
189 MCNAPI void tick(
190 ::std::string const& currentContext,
191 uint clientCount,
192 uint renderDistance,
193 uint simDistance,
195 reporter
196 );
197#endif
198
200 // NOLINTEND
201
202public:
203 // static functions
204 // NOLINTBEGIN
205 MCNAPI static ::PerfContextTracker& getInstance();
206 // NOLINTEND
207
208public:
209 // constructor thunks
210 // NOLINTBEGIN
211 MCNAPI void* $ctor();
212 // NOLINTEND
213
214public:
215 // destructor thunk
216 // NOLINTBEGIN
217 MCNAPI void $dtor();
218 // NOLINTEND
219};
Definition PerfContextTrackerReport.h:5
Definition PerfContextTracker.h:25
static MCAPI void ** $vftable()
Definition PerfContextTracker.h:62
MCAPI void * $ctor(::PerfContextEvent eventType)
MCAPI EventScope(::PerfContextEvent eventType)
Definition PerfContextTracker.h:97
static MCAPI void ** $vftable()
MCAPI PerfContextTracker()
MCAPI void incrementPacketReceivedInfo(uint packetSize)
MCAPI void setMobCount(uint mobCount)
static MCAPI ::PerfContextTracker & getInstance()
MCAPI void incrementPacketSentInfo(uint packetSize)
MCAPI void * $ctor()
MCAPI ~PerfContextTracker()
MCAPI void $dtor()
Definition function_ref.h:60
Definition FrameAnomalyDetectorSummary.h:5
Definition Alias.h:14