mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Read all CPU zone variables at once.
This commit is contained in:
parent
5227bc3549
commit
88f3e554da
@ -5177,10 +5177,11 @@ void Worker::ReadTimeline( FileRead& f, Vector<short_ptr<ZoneEvent>>& _vec, uint
|
|||||||
{
|
{
|
||||||
s_loadProgress.subProgress.fetch_add( 1, std::memory_order_relaxed );
|
s_loadProgress.subProgress.fetch_add( 1, std::memory_order_relaxed );
|
||||||
int16_t srcloc;
|
int16_t srcloc;
|
||||||
f.Read( srcloc );
|
int64_t tstart;
|
||||||
|
f.Read3( srcloc, tstart, zone->extra );
|
||||||
zone->SetSrcLoc( srcloc );
|
zone->SetSrcLoc( srcloc );
|
||||||
zone->SetStart( ReadTimeOffset( f, refTime ) );
|
refTime += tstart;
|
||||||
f.Read( zone->extra );
|
zone->SetStart( refTime );
|
||||||
ReadTimeline( f, zone, refTime, childIdx );
|
ReadTimeline( f, zone, refTime, childIdx );
|
||||||
zone->SetEnd( ReadTimeOffset( f, refTime ) );
|
zone->SetEnd( ReadTimeOffset( f, refTime ) );
|
||||||
#ifdef TRACY_NO_STATISTICS
|
#ifdef TRACY_NO_STATISTICS
|
||||||
|
Loading…
Reference in New Issue
Block a user