LeviLamina
Loading...
Searching...
No Matches
ProfilerLite.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7
8// auto generated forward declare list
9// clang-format off
12namespace Core { class OutputFileStream; }
13// clang-format on
14
16public:
17 // ProfilerLite inner types declare
18 // clang-format off
19 struct RealtimeFrameData;
20 struct ScopedData;
21 // clang-format on
22
23 // ProfilerLite inner types define
24 enum class ScopeTag : int {
25 None = 0,
26 Root = 1,
27 PreFrame = 2,
28 BeginFrame = 3,
30 EndFrame = 5,
31 Present = 6,
32 Input = 7,
33 ClientSimTick = 8,
34 ClientRealTick = 9,
35 ServerInstance = 10,
36 ServerSimTick = 11,
37 ServerRealTick = 12,
38 Render = 13,
39 RenderLevel = 14,
40 TickAndRenderUI = 15,
41 UpdateFrame = 16,
42 UpdateGame = 17,
43 Last = 17,
44 SimTickFirst = 8,
45 SimTickLast = 12,
46 RenderTickFirst = 13,
47 RenderTickLast = 15,
48 };
49
50 struct ScopedData {
51 public:
52 // member variables
53 // NOLINTBEGIN
65 // NOLINTEND
66
67 public:
68 // prevent constructor by default
69 ScopedData& operator=(ScopedData const&);
70 ScopedData(ScopedData const&);
71 ScopedData();
72
73 public:
74 // member functions
75 // NOLINTBEGIN
76 MCAPI ~ScopedData();
77 // NOLINTEND
78
79 public:
80 // destructor thunk
81 // NOLINTBEGIN
82 MCAPI void $dtor();
83 // NOLINTEND
84 };
85
87 public:
88 // member variables
89 // NOLINTBEGIN
97 // NOLINTEND
98
99 public:
100 // prevent constructor by default
101 RealtimeFrameData& operator=(RealtimeFrameData const&);
104 };
105
106public:
107 // member variables
108 // NOLINTBEGIN
109 ::ll::TypedStorage<8, 144, ::std::array<::ProfilerLite::ScopedData*, 18>> mCustomScopeDatas;
110 ::ll::TypedStorage<8, 96, ::ProfilerLite::ScopedData> mUninitializedScopedData;
111 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mLogFileName;
112 ::ll::TypedStorage<8, 296, ::Core::OutputFileStream> mLogFile;
113 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mScreenLoadLogFileName;
114 ::ll::TypedStorage<8, 296, ::Core::OutputFileStream> mScreenLoadLogFile;
115 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mEventLogFileName;
116 ::ll::TypedStorage<8, 296, ::Core::OutputFileStream> mEventLogFile;
117 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mSecondaryLogFileName;
118 ::ll::TypedStorage<8, 296, ::Core::OutputFileStream> mSecondaryLogFile;
119 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mSecondaryScreenLoadLogFileName;
120 ::ll::TypedStorage<8, 296, ::Core::OutputFileStream> mSecondaryScreenLoadLogFile;
121 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mSecondaryEventLogFileName;
122 ::ll::TypedStorage<8, 296, ::Core::OutputFileStream> mSecondaryEventLogFile;
123 ::ll::TypedStorage<4, 4, float> mSecondsPerUpdate;
124 ::ll::TypedStorage<8, 8, double> mTime;
125 ::ll::TypedStorage<8, 8, double> mStartTime;
126 ::ll::TypedStorage<8, 8, double> mNextUpdateTime;
127 ::ll::TypedStorage<8, 8, double> mLastUpdateTime;
128 ::ll::TypedStorage<8, 8, double> mBenchmarkModeTime;
129 ::ll::TypedStorage<1, 1, bool> mBenchmarkModeDone;
130 ::ll::TypedStorage<1, 1, bool> mBenchmarkModeIsSetup;
131 ::ll::TypedStorage<1, 1, bool> mDefaultEnabled;
132 ::ll::TypedStorage<1, 1, bool> mForceEnabled;
133 ::ll::TypedStorage<1, 1, bool> mShouldCheckTreatments;
134 ::ll::TypedStorage<1, 1, bool> mCanLogToSecondaryFile;
135 ::ll::TypedStorage<8, 8, ::_ProfilerLiteTimer*> mActiveScope;
136 ::ll::TypedStorage<8, 16, ::std::map<::std::thread::id, ::_ProfilerLiteTimer*>> mThreadedActiveScopes;
137 ::ll::TypedStorage<8, 32, ::std::string> mCurrentGamestate;
138 ::ll::TypedStorage<8, 8, ::std::chrono::nanoseconds> mDebugServerTickTime;
139 ::ll::TypedStorage<8, 8, ::std::chrono::nanoseconds> mDebugServerNetworkTime;
140 ::ll::TypedStorage<4, 4, float> mDebugRemoteServerTickTime;
141 ::ll::TypedStorage<4, 48, ::ProfilerLiteTelemetry> mTelemetry;
142 ::ll::TypedStorage<8, 32, ::std::string> mCachedProfileString;
143 ::ll::TypedStorage<4, 16, ::std::array<uint, 4>> mLastNetworkStatSampleNum;
144 ::ll::TypedStorage<8, 8, uint64> mPrevTotalBytesWritten;
145 ::ll::TypedStorage<8, 8, uint64> mPrevTotalBytesRead;
146 ::ll::TypedStorage<8, 40, ::ProfilerLite::RealtimeFrameData> mFrameData;
147 // NOLINTEND
148
149public:
150 // member functions
151 // NOLINTBEGIN
152 MCAPI ProfilerLite();
153
154 MCAPI ~ProfilerLite();
155 // NOLINTEND
156
157public:
158 // static variables
159 // NOLINTBEGIN
160 MCAPI static ::ProfilerLite& gProfilerLiteInstance();
161
162 MCAPI static ::std::thread::id& sEmptyThreadID();
163 // NOLINTEND
164
165public:
166 // constructor thunks
167 // NOLINTBEGIN
168 MCAPI void* $ctor();
169 // NOLINTEND
170
171public:
172 // destructor thunk
173 // NOLINTBEGIN
174 MCAPI void $dtor();
175 // NOLINTEND
176};
Definition ClientInstance.h:186
Definition ProfilerLite.h:15
Definition ServerInstance.h:65
Definition _ProfilerLiteTimer.h:8
Definition ProfilerLiteTelemetry.h:5
Definition ProfilerLite.h:86
Definition ProfilerLite.h:50
Definition Alias.h:14