mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Save/load fiber thread flag.
This commit is contained in:
parent
8f44f1c68b
commit
93b6d88c4c
@ -7,7 +7,7 @@ namespace Version
|
|||||||
{
|
{
|
||||||
enum { Major = 0 };
|
enum { Major = 0 };
|
||||||
enum { Minor = 7 };
|
enum { Minor = 7 };
|
||||||
enum { Patch = 10 };
|
enum { Patch = 11 };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -933,14 +933,20 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
|||||||
{
|
{
|
||||||
auto td = m_slab.AllocInit<ThreadData>();
|
auto td = m_slab.AllocInit<ThreadData>();
|
||||||
uint64_t tid;
|
uint64_t tid;
|
||||||
if( fileVer >= FileVersion( 0, 7, 9 ) )
|
if( fileVer >= FileVersion( 0, 7, 11 ) )
|
||||||
|
{
|
||||||
|
f.Read4( tid, td->count, td->kernelSampleCnt, td->isFiber );
|
||||||
|
}
|
||||||
|
else if( fileVer >= FileVersion( 0, 7, 9 ) )
|
||||||
{
|
{
|
||||||
f.Read3( tid, td->count, td->kernelSampleCnt );
|
f.Read3( tid, td->count, td->kernelSampleCnt );
|
||||||
|
td->isFiber = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
f.Read2( tid, td->count );
|
f.Read2( tid, td->count );
|
||||||
td->kernelSampleCnt = 0;
|
td->kernelSampleCnt = 0;
|
||||||
|
td->isFiber = 0;
|
||||||
}
|
}
|
||||||
td->id = tid;
|
td->id = tid;
|
||||||
m_data.zonesCnt += td->count;
|
m_data.zonesCnt += td->count;
|
||||||
@ -7562,6 +7568,7 @@ void Worker::Write( FileWrite& f, bool fiDict )
|
|||||||
f.Write( &thread->id, sizeof( thread->id ) );
|
f.Write( &thread->id, sizeof( thread->id ) );
|
||||||
f.Write( &thread->count, sizeof( thread->count ) );
|
f.Write( &thread->count, sizeof( thread->count ) );
|
||||||
f.Write( &thread->kernelSampleCnt, sizeof( thread->kernelSampleCnt ) );
|
f.Write( &thread->kernelSampleCnt, sizeof( thread->kernelSampleCnt ) );
|
||||||
|
f.Write( &thread->isFiber, sizeof( thread->isFiber ) );
|
||||||
WriteTimeline( f, thread->timeline, refTime );
|
WriteTimeline( f, thread->timeline, refTime );
|
||||||
sz = thread->messages.size();
|
sz = thread->messages.size();
|
||||||
f.Write( &sz, sizeof( sz ) );
|
f.Write( &sz, sizeof( sz ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user