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

Exchange time and id in queue header and data structs.

This commit is contained in:
Bartosz Taudul
2017-09-14 01:07:14 +02:00
parent 3e1b736b34
commit d999f35dfa
4 changed files with 19 additions and 18 deletions
+2 -3
View File
@@ -12,14 +12,13 @@ class ScopedZone
{
public:
ScopedZone( const char* file, const char* function, uint32_t line )
: m_id( Profiler::GetNewId() )
: m_id( Profiler::ZoneBegin( QueueZoneBegin { GetTime(), (uint64_t)file, (uint64_t)function, line } ) )
{
Profiler::ZoneBegin( QueueZoneBegin { m_id, (uint64_t)file, (uint64_t)function, line } );
}
~ScopedZone()
{
Profiler::ZoneEnd( QueueZoneEnd { m_id } );
Profiler::ZoneEnd( m_id, QueueZoneEnd { GetTime() } );
}
private: