mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Add callstack index to ZoneEvent.
This commit is contained in:
parent
978e168cbd
commit
205a4e4ca2
@ -80,6 +80,7 @@ struct ZoneEvent
|
|||||||
int8_t cpu_start;
|
int8_t cpu_start;
|
||||||
int8_t cpu_end;
|
int8_t cpu_end;
|
||||||
StringIdx text;
|
StringIdx text;
|
||||||
|
uint32_t callstack;
|
||||||
|
|
||||||
// This must be last. All above is read/saved as-is.
|
// This must be last. All above is read/saved as-is.
|
||||||
Vector<ZoneEvent*> child;
|
Vector<ZoneEvent*> child;
|
||||||
|
@ -1597,6 +1597,7 @@ void Worker::ProcessZoneBeginImpl( ZoneEvent* zone, const QueueZoneBegin& ev )
|
|||||||
zone->srcloc = ShrinkSourceLocation( ev.srcloc );
|
zone->srcloc = ShrinkSourceLocation( ev.srcloc );
|
||||||
assert( ev.cpu == 0xFFFFFFFF || ev.cpu <= std::numeric_limits<int8_t>::max() );
|
assert( ev.cpu == 0xFFFFFFFF || ev.cpu <= std::numeric_limits<int8_t>::max() );
|
||||||
zone->cpu_start = ev.cpu == 0xFFFFFFFF ? -1 : (int8_t)ev.cpu;
|
zone->cpu_start = ev.cpu == 0xFFFFFFFF ? -1 : (int8_t)ev.cpu;
|
||||||
|
zone->callstack = 0;
|
||||||
|
|
||||||
m_data.lastTime = std::max( m_data.lastTime, zone->start );
|
m_data.lastTime = std::max( m_data.lastTime, zone->start );
|
||||||
|
|
||||||
@ -1631,6 +1632,7 @@ void Worker::ProcessZoneBeginAllocSrcLoc( const QueueZoneBegin& ev )
|
|||||||
zone->srcloc = it->second;
|
zone->srcloc = it->second;
|
||||||
assert( ev.cpu == 0xFFFFFFFF || ev.cpu <= std::numeric_limits<int8_t>::max() );
|
assert( ev.cpu == 0xFFFFFFFF || ev.cpu <= std::numeric_limits<int8_t>::max() );
|
||||||
zone->cpu_start = ev.cpu == 0xFFFFFFFF ? -1 : (int8_t)ev.cpu;
|
zone->cpu_start = ev.cpu == 0xFFFFFFFF ? -1 : (int8_t)ev.cpu;
|
||||||
|
zone->callstack = 0;
|
||||||
|
|
||||||
m_data.lastTime = std::max( m_data.lastTime, zone->start );
|
m_data.lastTime = std::max( m_data.lastTime, zone->start );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user