mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fix ghost children times.
This commit is contained in:
parent
1f4dbd1b2e
commit
92e2597192
@ -1800,7 +1800,13 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
gcnt++;
|
gcnt++;
|
||||||
back.end.SetVal( time );
|
auto ptr = &back;
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
ptr->end.SetVal( time );
|
||||||
|
if( ptr->child < 0 ) break;
|
||||||
|
ptr = &GetGhostChildrenMutable( ptr->child ).back();
|
||||||
|
}
|
||||||
auto& zone = vec->push_next();
|
auto& zone = vec->push_next();
|
||||||
zone.start.SetVal( time );
|
zone.start.SetVal( time );
|
||||||
zone.end.SetVal( time + m_samplingPeriod );
|
zone.end.SetVal( time + m_samplingPeriod );
|
||||||
|
@ -665,6 +665,9 @@ private:
|
|||||||
const ContextSwitch* const GetContextSwitchDataImpl( uint64_t thread );
|
const ContextSwitch* const GetContextSwitchDataImpl( uint64_t thread );
|
||||||
|
|
||||||
tracy_force_inline Vector<short_ptr<ZoneEvent>>& GetZoneChildrenMutable( int32_t idx ) { return m_data.zoneChildren[idx]; }
|
tracy_force_inline Vector<short_ptr<ZoneEvent>>& GetZoneChildrenMutable( int32_t idx ) { return m_data.zoneChildren[idx]; }
|
||||||
|
#ifndef TRACY_NO_STATISTICS
|
||||||
|
tracy_force_inline Vector<GhostZone>& GetGhostChildrenMutable( int32_t idx ) { return m_data.ghostChildren[idx]; }
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
void ReconstructContextSwitchUsage();
|
void ReconstructContextSwitchUsage();
|
||||||
|
Loading…
Reference in New Issue
Block a user