mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 05:03:53 +00:00
Store CPU architecture.
This commit is contained in:
parent
add5b29d03
commit
39da6c7c19
@ -441,6 +441,10 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
|||||||
{
|
{
|
||||||
m_samplingPeriod = 0;
|
m_samplingPeriod = 0;
|
||||||
}
|
}
|
||||||
|
if( fileVer >= FileVersion( 0, 6, 7 ) )
|
||||||
|
{
|
||||||
|
f.Read( m_data.cpuArch );
|
||||||
|
}
|
||||||
|
|
||||||
uint64_t sz;
|
uint64_t sz;
|
||||||
{
|
{
|
||||||
@ -2680,6 +2684,7 @@ void Worker::Exec()
|
|||||||
m_captureProgram = welcome.programName;
|
m_captureProgram = welcome.programName;
|
||||||
m_captureTime = welcome.epoch;
|
m_captureTime = welcome.epoch;
|
||||||
m_ignoreMemFreeFaults = welcome.onDemand || welcome.isApple;
|
m_ignoreMemFreeFaults = welcome.onDemand || welcome.isApple;
|
||||||
|
m_data.cpuArch = (CpuArchitecture)welcome.cpuArch;
|
||||||
|
|
||||||
char dtmp[64];
|
char dtmp[64];
|
||||||
time_t date = welcome.epoch;
|
time_t date = welcome.epoch;
|
||||||
@ -6238,6 +6243,7 @@ void Worker::Write( FileWrite& f )
|
|||||||
f.Write( &m_data.frameOffset, sizeof( m_data.frameOffset ) );
|
f.Write( &m_data.frameOffset, sizeof( m_data.frameOffset ) );
|
||||||
f.Write( &m_pid, sizeof( m_pid ) );
|
f.Write( &m_pid, sizeof( m_pid ) );
|
||||||
f.Write( &m_samplingPeriod, sizeof( m_samplingPeriod ) );
|
f.Write( &m_samplingPeriod, sizeof( m_samplingPeriod ) );
|
||||||
|
f.Write( &m_data.cpuArch, sizeof( m_data.cpuArch ) );
|
||||||
|
|
||||||
uint64_t sz = m_captureName.size();
|
uint64_t sz = m_captureName.size();
|
||||||
f.Write( &sz, sizeof( sz ) );
|
f.Write( &sz, sizeof( sz ) );
|
||||||
|
@ -208,6 +208,7 @@ private:
|
|||||||
int64_t baseTime = 0;
|
int64_t baseTime = 0;
|
||||||
int64_t lastTime = 0;
|
int64_t lastTime = 0;
|
||||||
uint64_t frameOffset = 0;
|
uint64_t frameOffset = 0;
|
||||||
|
CpuArchitecture cpuArch = CpuArchUnknown;
|
||||||
|
|
||||||
unordered_flat_map<uint64_t, const char*> strings;
|
unordered_flat_map<uint64_t, const char*> strings;
|
||||||
Vector<const char*> stringData;
|
Vector<const char*> stringData;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user