LeviLamina
Loading...
Searching...
No Matches
ProfilerLite Class Reference

Classes

struct  RealtimeFrameData
struct  ScopedData

Public Types

enum class  ScopeTag : int {
  None = 0 , Root = 1 , PreFrame = 2 , BeginFrame = 3 ,
  ClientInstance = 4 , EndFrame = 5 , Present = 6 , Input = 7 ,
  ClientSimTick = 8 , ClientRealTick = 9 , ServerInstance = 10 , ServerSimTick = 11 ,
  ServerRealTick = 12 , Render = 13 , RenderLevel = 14 , TickAndRenderUI = 15 ,
  UpdateFrame = 16 , UpdateGame = 17 , Last = 17 , SimTickFirst = 8 ,
  SimTickLast = 12 , RenderTickFirst = 13 , RenderTickLast = 15
}
using EventSource
using EventVisitor = ::brstd::function_ref<void(::std::string const&, double)>

Public Member Functions

MCAPI_C void _calculateRealtimeFrameData ()
MCAPI_C void _getProfileStringRecursive (::ProfilerLite::ScopedData &scope, uint64 &writeCount, uint64 &remainingLength, char *&stringBuilderTemp)
MCFOLD_C void _shutdown ()
MCAPI_C::Bedrock::ScopeExit init (::Core::Path const &logFilePath)
MCAPI_C void logScreenCreationEvent (::std::string const &screenName, double creationTime, uchar clientID)
MCAPI_C void reset ()
MCAPI_C bool tick (bool isVSynced, bool frameDiscarded, bool outputProfilerInfo, int benchmarkModeStartTime, ::ProfilerResourceUsage const &resources, bool logPackets)
MCAPI void * $ctor ()
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI_C void _writeHeadersIfEmpty (::std::string const &header, ::Core::Path logFileName, ::Core::OutputFileStream &file)
static MCAPI_C void getNetworkStats (::NetworkStatMetrics &stats, uint &lastSampleNum, ::TrackerType type)
static MCAPI ::ProfilerLite & gProfilerLiteInstance ()
static MCAPI ::std::thread::id & sEmptyThreadID ()

Public Attributes

::ll::TypedStorage< 8, 144, ::std::array<::ProfilerLite::ScopedData *, 18 > > mCustomScopeDatas
::ll::TypedStorage< 8, 96, ::ProfilerLite::ScopedDatamUninitializedScopedData
::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > > mLogFileName
::ll::TypedStorage< 8, 296, ::Core::OutputFileStreammLogFile
::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > > mScreenLoadLogFileName
::ll::TypedStorage< 8, 296, ::Core::OutputFileStreammScreenLoadLogFile
::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > > mEventLogFileName
::ll::TypedStorage< 8, 296, ::Core::OutputFileStreammEventLogFile
::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > > mSecondaryLogFileName
::ll::TypedStorage< 8, 296, ::Core::OutputFileStreammSecondaryLogFile
::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > > mSecondaryScreenLoadLogFileName
::ll::TypedStorage< 8, 296, ::Core::OutputFileStreammSecondaryScreenLoadLogFile
::ll::TypedStorage< 8, 32, ::Core::PathBuffer<::std::string > > mSecondaryEventLogFileName
::ll::TypedStorage< 8, 296, ::Core::OutputFileStreammSecondaryEventLogFile
::ll::TypedStorage< 4, 4, float > mSecondsPerUpdate
::ll::TypedStorage< 8, 8, double > mTime
::ll::TypedStorage< 8, 8, double > mStartTime
::ll::TypedStorage< 8, 8, double > mNextUpdateTime
::ll::TypedStorage< 8, 8, double > mLastUpdateTime
::ll::TypedStorage< 8, 8, double > mBenchmarkModeTime
::ll::TypedStorage< 4, 4, int > mTicksToNextMemoryUpdate
::ll::TypedStorage< 1, 1, bool > mBenchmarkModeDone
::ll::TypedStorage< 1, 1, bool > mBenchmarkModeIsSetup
::ll::TypedStorage< 1, 1, bool > mDefaultEnabled
::ll::TypedStorage< 1, 1, bool > mForceEnabled
::ll::TypedStorage< 1, 1, bool > mShouldCheckTreatments
::ll::TypedStorage< 1, 1, bool > mCanLogToSecondaryFile
::ll::TypedStorage< 8, 8, ::_ProfilerLiteTimer * > mActiveScope
::ll::TypedStorage< 8, 16, ::std::map<::std::thread::id, ::_ProfilerLiteTimer * > > mThreadedActiveScopes
::ll::TypedStorage< 8, 32, ::std::string > mCurrentGamestate
::ll::TypedStorage< 8, 8, ::std::chrono::nanoseconds > mDebugServerTickTime
::ll::TypedStorage< 8, 8, ::std::chrono::nanoseconds > mDebugServerNetworkTime
::ll::TypedStorage< 4, 4, float > mDebugRemoteServerTickTime
::ll::TypedStorage< 8, 72, ::ProfilerLiteTelemetrymTelemetry
::ll::TypedStorage< 8, 32, ::std::string > mCachedProfileString
::ll::TypedStorage< 4, 16, ::std::array< uint, 4 > > mLastNetworkStatSampleNum
::ll::TypedStorage< 8, 8, uint64 > mPrevTotalBytesWritten
::ll::TypedStorage< 8, 8, uint64 > mPrevTotalBytesRead
::ll::TypedStorage< 8, 40, ::ProfilerLite::RealtimeFrameDatamFrameData

Member Typedef Documentation

◆ EventSource

using ProfilerLite::EventSource
Initial value:
void(::brstd::function_ref<void(::std::string const&, double), void(::std::string const&, double)>)>
Definition function_ref.h:60

The documentation for this class was generated from the following file: