Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
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
8
// auto generated forward declare list
9
// clang-format off
10
class
PerfContextTrackerReport
;
11
class
PerfContextTrackerReportLite
;
12
// clang-format on
13
14
class
PerfContextTracker {
15
public
:
16
// PerfContextTracker inner types declare
17
// clang-format off
18
class
Duration
;
19
class
EventScope
;
20
class
Timer
;
21
// clang-format on
22
23
// PerfContextTracker inner types define
24
class
Duration {
25
public
:
26
// member variables
27
// NOLINTBEGIN
28
::ll::UntypedStorage<8, 8>
mUnk954db5;
29
::ll::UntypedStorage<8, 8>
mUnk3c6902;
30
// NOLINTEND
31
32
public
:
33
// prevent constructor by default
34
Duration& operator=(Duration
const
&);
35
Duration(Duration
const
&);
36
Duration();
37
38
public
:
39
// virtual functions
40
// NOLINTBEGIN
41
virtual
~Duration() =
default
;
42
43
virtual
void
reset();
44
// NOLINTEND
45
46
public
:
47
// virtual function thunks
48
// NOLINTBEGIN
49
MCNAPI
void
$reset
();
50
51
52
// NOLINTEND
53
};
54
55
class
EventScope {
56
public
:
57
// member variables
58
// NOLINTBEGIN
59
::ll::UntypedStorage<8, 8>
mUnkad1144;
60
::ll::UntypedStorage<8, 40>
mUnk7fb3d1;
61
// NOLINTEND
62
63
public
:
64
// prevent constructor by default
65
EventScope& operator=(EventScope
const
&);
66
EventScope(EventScope
const
&);
67
EventScope();
68
69
public
:
70
// member functions
71
// NOLINTBEGIN
72
MCNAPI
~EventScope
();
73
// NOLINTEND
74
75
public
:
76
// destructor thunk
77
// NOLINTBEGIN
78
MCNAPI
void
$dtor
();
79
// NOLINTEND
80
};
81
82
class
Timer :
public
::PerfContextTracker::Duration
{
83
public
:
84
// member variables
85
// NOLINTBEGIN
86
::ll::UntypedStorage<1, 1>
mUnk93228d;
87
::ll::UntypedStorage<8, 8>
mUnk5ef954;
88
// NOLINTEND
89
90
public
:
91
// prevent constructor by default
92
Timer& operator=(Timer
const
&);
93
Timer(Timer
const
&);
94
Timer();
95
96
public
:
97
// virtual functions
98
// NOLINTBEGIN
99
virtual
void
reset()
/*override*/
;
100
// NOLINTEND
101
102
public
:
103
// virtual function thunks
104
// NOLINTBEGIN
105
MCNAPI
void
$reset
();
106
107
108
// NOLINTEND
109
110
public
:
111
// vftables
112
// NOLINTBEGIN
113
MCNAPI
static
void
**
$vftable
();
114
// NOLINTEND
115
};
116
117
public
:
118
// member variables
119
// NOLINTBEGIN
120
::ll::UntypedStorage<8, 80>
mUnkb78c30;
121
::ll::UntypedStorage<1, 1>
mUnkee6e42;
122
::ll::UntypedStorage<8, 32>
mUnk2b7e27;
123
::ll::UntypedStorage<8, 40>
mUnkeefdc7;
124
::ll::UntypedStorage<8, 288>
mUnk7e0308;
125
::ll::UntypedStorage<8, 272>
mUnk8e863b;
126
::ll::UntypedStorage<4, 4>
mUnkf2b035;
127
::ll::UntypedStorage<4, 4>
mUnke5955e;
128
::ll::UntypedStorage<4, 4>
mUnk4f5d25;
129
::ll::UntypedStorage<4, 4>
mUnkaed369;
130
::ll::UntypedStorage<4, 4>
mUnkccc016;
131
::ll::UntypedStorage<4, 4>
mUnk66f8d6;
132
::ll::UntypedStorage<4, 4>
mUnk800a03;
133
::ll::UntypedStorage<8, 64>
mUnk39cda4;
134
::ll::UntypedStorage<8, 16>
mUnke4d432;
135
::ll::UntypedStorage<1, 1>
mUnk1b3be6;
136
// NOLINTEND
137
138
public
:
139
// prevent constructor by default
140
PerfContextTracker& operator=(PerfContextTracker
const
&);
141
PerfContextTracker
(PerfContextTracker
const
&);
142
143
public
:
144
// member functions
145
// NOLINTBEGIN
146
MCNAPI
PerfContextTracker
();
147
148
#ifdef LL_PLAT_C
149
MCNAPI
bool
_tryBeginContext(::std::string
const
& contextName, ::std::chrono::steady_clock::time_point
const
& now);
150
151
MCNAPI
void
_tryEndContext(::std::chrono::steady_clock::time_point
const
& now);
152
153
MCNAPI
void
clear();
154
155
MCNAPI
void
onAppResume();
156
157
MCNAPI
void
onAppSuspend();
158
159
MCNAPI ::PerfContextTrackerReportLite peekReportLite()
const
;
160
161
MCNAPI
void
tick(
162
::std::string
const
& currentContext,
163
uint clientCount,
164
uint renderDistance,
165
uint simDistance,
166
::brstd::function_ref
<
void
(
::PerfContextTrackerReport
const
&)
const
,
void
(
::PerfContextTrackerReport
const
&)>
167
reporter,
168
::brstd::function_ref
<
void
()
const
,
void
()> gatherData
169
);
170
#endif
171
// NOLINTEND
172
173
public
:
174
// constructor thunks
175
// NOLINTBEGIN
176
MCNAPI
void
*
$ctor
();
177
// NOLINTEND
178
};
PerfContextTrackerReportLite
Definition
PerfContextTrackerReportLite.h:5
PerfContextTrackerReport
Definition
PerfContextTrackerReport.h:8
PerfContextTracker::Duration
Definition
PerfContextTracker.h:24
PerfContextTracker::Duration::$reset
MCAPI void $reset()
PerfContextTracker::EventScope
Definition
PerfContextTracker.h:55
PerfContextTracker::EventScope::$dtor
MCAPI void $dtor()
PerfContextTracker::EventScope::~EventScope
MCAPI ~EventScope()
PerfContextTracker::Timer
Definition
PerfContextTracker.h:82
PerfContextTracker::Timer::$vftable
static MCAPI void ** $vftable()
PerfContextTracker::Timer::$reset
MCAPI void $reset()
PerfContextTracker::PerfContextTracker
MCAPI PerfContextTracker()
PerfContextTracker::$ctor
MCAPI void * $ctor()
brstd::function_ref
Definition
function_ref.h:60
ll::UntypedStorage
Definition
Alias.h:14
src
mc
util
PerfContextTracker.h
Generated on
for LeviLamina by
1.16.1