Add name field to frame mark message.

This commit is contained in:
Bartosz Taudul 2018-08-04 15:03:47 +02:00
parent ea588072f2
commit 922882d3b0
2 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ public:
auto item = token->enqueue_begin<tracy::moodycamel::CanAlloc>( magic ); auto item = token->enqueue_begin<tracy::moodycamel::CanAlloc>( magic );
MemWrite( &item->hdr.type, QueueType::FrameMarkMsg ); MemWrite( &item->hdr.type, QueueType::FrameMarkMsg );
MemWrite( &item->frameMark.time, GetTime() ); MemWrite( &item->frameMark.time, GetTime() );
MemWrite( &item->frameMark.name, uint64_t( 0 ) );
tail.store( magic + 1, std::memory_order_release ); tail.store( magic + 1, std::memory_order_release );
} }

View File

@ -75,6 +75,7 @@ struct QueueStringTransfer
struct QueueFrameMark struct QueueFrameMark
{ {
int64_t time; int64_t time;
uint64_t name; // ptr
}; };
struct QueueSourceLocation struct QueueSourceLocation