1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Send frame markers.

This commit is contained in:
Bartosz Taudul
2017-09-16 00:30:27 +02:00
parent 90cdda8542
commit 03ece0ac48
5 changed files with 15 additions and 0 deletions
+8
View File
@@ -75,6 +75,14 @@ void Profiler::ZoneEnd( uint64_t id, QueueZoneEnd&& data )
s_instance->m_queue.enqueue( GetToken(), std::move( item ) );
}
void Profiler::FrameMark()
{
QueueItem item;
item.hdr.type = QueueType::FrameMark;
item.hdr.id = (uint64_t)GetTime();
s_instance->m_queue.enqueue( GetToken(), std::move( item ) );
}
Profiler* Profiler::Instance()
{
return s_instance;