MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Message

Method Message

Source/ThirdParty/tracy/client/TracyProfiler.cpp:4169–4188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4167}
4168
4169void Profiler::Message( const char* txt, size_t size, int32_t callstack_depth )
4170{
4171 assert( size < (std::numeric_limits<uint16_t>::max)() );
4172#ifdef TRACY_ON_DEMAND
4173 if( !GetProfiler().IsConnected() ) return;
4174#endif
4175 if( callstack_depth != 0 && has_callstack() )
4176 {
4177 tracy::GetProfiler().SendCallstack( callstack_depth );
4178 }
4179
4180 auto ptr = (char*)tracy_malloc( size );
4181 memcpy( ptr, txt, size );
4182
4183 TracyQueuePrepare( callstack_depth == 0 ? QueueType::Message : QueueType::MessageCallstack );
4184 MemWrite( &item->messageFat.time, GetTime() );
4185 MemWrite( &item->messageFat.text, (uint64_t)ptr );
4186 MemWrite( &item->messageFat.size, (uint16_t)size );
4187 TracyQueueCommit( messageFatThread );
4188}
4189
4190void Profiler::Message( const char* txt, int32_t callstack_depth )
4191{

Callers

nothing calls this directly

Calls 6

has_callstackFunction · 0.85
tracy_mallocFunction · 0.85
memcpyFunction · 0.85
MemWriteFunction · 0.85
GetTimeFunction · 0.85
SendCallstackMethod · 0.80

Tested by

no test coverage detected