mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Allow disabling code transfer.
This commit is contained in:
@@ -2581,6 +2581,7 @@ void Worker::Exec()
|
||||
m_captureTime = welcome.epoch;
|
||||
m_ignoreMemFreeFaults = welcome.onDemand || welcome.isApple;
|
||||
m_data.cpuArch = (CpuArchitecture)welcome.cpuArch;
|
||||
m_codeTransfer = welcome.codeTransfer;
|
||||
m_data.cpuId = welcome.cpuId;
|
||||
memcpy( m_data.cpuManufacturer, welcome.cpuManufacturer, 12 );
|
||||
m_data.cpuManufacturer[12] = '\0';
|
||||
@@ -5576,7 +5577,7 @@ void Worker::ProcessSymbolInformation( const QueueSymbolInformation& ev )
|
||||
sd.size.SetVal( it->second.size );
|
||||
m_data.symbolMap.emplace( ev.symAddr, std::move( sd ) );
|
||||
|
||||
if( it->second.size > 0 && it->second.size <= 64*1024 )
|
||||
if( m_codeTransfer && it->second.size > 0 && it->second.size <= 64*1024 )
|
||||
{
|
||||
assert( m_pendingSymbolCode.find( ev.symAddr ) == m_pendingSymbolCode.end() );
|
||||
m_pendingSymbolCode.emplace( ev.symAddr );
|
||||
|
||||
Reference in New Issue
Block a user