3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/profiler/ProfileClient.h"
7#include "mc/deps/profiler/ThreadFrameType.h"
8#include "mc/platform/brstd/basic_cstring_view.h"
13namespace Bedrock::Profile::Whisker {
struct ScopeData; }
15namespace Bedrock::RefCount::details {
struct KeepAlive; }
20namespace Core::Profile {
28 virtual void onFrameTransition(uchar previousFrameType) ;
30 virtual void onThreadCreate(
32 ::Core::Profile::ThreadFrameType frameType
35 virtual void onThreadDestroy() ;
37 virtual void onMainThreadCreate() ;
39 virtual void onMainThreadDestroy() ;
41 virtual void enterCPUProfile(
46 virtual void leaveCPUProfile(
51 virtual void generateCPUProfileTokenStatic(
64 MCNAPI
void fetchData(::gsl::span<::Bedrock::Profile::Whisker::ScopeData> output, ::std::thread::id thread)
const;
66 MCNAPI
void purgeAllRecords();
69 queryThreadIDsByType(::std::vector<::std::thread::id>& output, ::Core::Profile::ThreadFrameType threadType)
const;
71 MCNAPI
void resolveUniqueKeysByName(
72 ::gsl::span<void const*> output,
73 ::gsl::span<::std::string_view const> names,
74 ::std::thread::id thread
86 ::Core::Profile::ThreadFrameType frameType
Definition ScopeStackStorage.h:7
Definition ProfileClient.h:27
Definition ScopeToken.h:7
Definition Whisker_ProfileClient.h:22
MCAPI void $onMainThreadDestroy()
static MCAPI void ** $vftable()
MCAPI void $onMainThreadCreate()
MCAPI void $onThreadCreate(::brstd::basic_cstring_view< char, ::std::char_traits< char > > name, ::Core::Profile::ThreadFrameType frameType)
MCAPI void $enterCPUProfile(::Bedrock::Profile::ScopeStackStorage &scope, ::Core::Profile::ScopeToken const &token)
MCAPI void $onThreadDestroy()
MCAPI void $leaveCPUProfile(::Bedrock::Profile::ScopeStackStorage &scope, ::Core::Profile::ScopeToken const &token)
MCAPI void $generateCPUProfileTokenStatic(::Core::Profile::ScopeToken &target, char const *group, ::Bedrock::Profiler::details::StaticProfLabel label, uint color, ::brstd::source_location const &location)
MCAPI void $onFrameTransition(uchar previousFrameType)
Definition basic_cstring_view.h:8
Definition StaticProfLabel.h:7
Definition source_location.h:7