mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Serialize continuous frame events.
This commit is contained in:
parent
0427904d4a
commit
765561de81
@ -226,10 +226,11 @@ public:
|
|||||||
#ifdef TRACY_ON_DEMAND
|
#ifdef TRACY_ON_DEMAND
|
||||||
if( !GetProfiler().IsConnected() ) return;
|
if( !GetProfiler().IsConnected() ) return;
|
||||||
#endif
|
#endif
|
||||||
TracyLfqPrepare( QueueType::FrameMarkMsg );
|
auto item = QueueSerial();
|
||||||
|
MemWrite( &item->hdr.type, QueueType::FrameMarkMsg );
|
||||||
MemWrite( &item->frameMark.time, GetTime() );
|
MemWrite( &item->frameMark.time, GetTime() );
|
||||||
MemWrite( &item->frameMark.name, uint64_t( name ) );
|
MemWrite( &item->frameMark.name, uint64_t( name ) );
|
||||||
TracyLfqCommit;
|
QueueSerialFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
static tracy_force_inline void SendFrameMark( const char* name, QueueType type )
|
static tracy_force_inline void SendFrameMark( const char* name, QueueType type )
|
||||||
|
Loading…
Reference in New Issue
Block a user