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
8// auto generated forward declare list
9// clang-format off
12// clang-format on
13
14class PerfContextTracker {
15public:
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
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
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
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
117public:
118 // member variables
119 // NOLINTBEGIN
136 // NOLINTEND
137
138public:
139 // prevent constructor by default
140 PerfContextTracker& operator=(PerfContextTracker const&);
141 PerfContextTracker(PerfContextTracker const&);
142
143public:
144 // member functions
145 // NOLINTBEGIN
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,
167 reporter,
168 ::brstd::function_ref<void() const, void()> gatherData
169 );
170#endif
171 // NOLINTEND
172
173public:
174 // constructor thunks
175 // NOLINTBEGIN
176 MCNAPI void* $ctor();
177 // NOLINTEND
178};
Definition PerfContextTrackerReportLite.h:5
Definition PerfContextTrackerReport.h:8
Definition PerfContextTracker.h:24
Definition PerfContextTracker.h:55
Definition PerfContextTracker.h:82
static MCAPI void ** $vftable()
MCAPI PerfContextTracker()
MCAPI void * $ctor()
Definition function_ref.h:60
Definition Alias.h:14