mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Save callstack payload.
This commit is contained in:
parent
2940230fcf
commit
7c1333ce2f
@ -2416,6 +2416,15 @@ void Worker::Write( FileWrite& f )
|
||||
f.Write( &m_data.memory.high, sizeof( m_data.memory.high ) );
|
||||
f.Write( &m_data.memory.low, sizeof( m_data.memory.low ) );
|
||||
f.Write( &m_data.memory.usage, sizeof( m_data.memory.usage ) );
|
||||
|
||||
sz = m_data.callstackPayload.size();
|
||||
f.Write( &sz, sizeof( sz ) );
|
||||
for( auto& cs : m_data.callstackPayload )
|
||||
{
|
||||
uint8_t csz = cs->size();
|
||||
f.Write( &csz, sizeof( csz ) );
|
||||
f.Write( cs->data(), sizeof( uint64_t ) * csz );
|
||||
}
|
||||
}
|
||||
|
||||
void Worker::WriteTimeline( FileWrite& f, const Vector<ZoneEvent*>& vec )
|
||||
|
Loading…
Reference in New Issue
Block a user