mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Cache callstack/symbol/code source files.
This commit is contained in:
parent
f7341141cf
commit
964d65fd3b
@ -5655,6 +5655,10 @@ void Worker::ProcessCallstackFrame( const QueueCallstackFrame& ev )
|
|||||||
Query( ServerQuerySymbol, ev.symAddr );
|
Query( ServerQuerySymbol, ev.symAddr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StringRef ref( StringRef::Idx, fitidx );
|
||||||
|
auto cit = m_checkedFileStrings.find( ref );
|
||||||
|
if( cit == m_checkedFileStrings.end() ) CacheSource( ref );
|
||||||
|
|
||||||
const auto frameId = PackPointer( m_callstackFrameStagingPtr );
|
const auto frameId = PackPointer( m_callstackFrameStagingPtr );
|
||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
auto it = m_data.pendingInstructionPointers.find( frameId );
|
auto it = m_data.pendingInstructionPointers.find( frameId );
|
||||||
@ -5727,6 +5731,10 @@ void Worker::ProcessSymbolInformation( const QueueSymbolInformation& ev )
|
|||||||
m_data.symbolLocInline.push_back( ev.symAddr );
|
m_data.symbolLocInline.push_back( ev.symAddr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StringRef ref( StringRef::Idx, fit->second.idx );
|
||||||
|
auto cit = m_checkedFileStrings.find( ref );
|
||||||
|
if( cit == m_checkedFileStrings.end() ) CacheSource( ref );
|
||||||
|
|
||||||
m_pendingSymbols.erase( it );
|
m_pendingSymbols.erase( it );
|
||||||
m_pendingCustomStrings.erase( fit );
|
m_pendingCustomStrings.erase( fit );
|
||||||
}
|
}
|
||||||
@ -5756,6 +5764,10 @@ void Worker::ProcessCodeInformation( const QueueCodeInformation& ev )
|
|||||||
lit->second.push_back( ev.ptr );
|
lit->second.push_back( ev.ptr );
|
||||||
if( needSort ) pdqsort_branchless( lit->second.begin(), lit->second.end() );
|
if( needSort ) pdqsort_branchless( lit->second.begin(), lit->second.end() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StringRef ref( StringRef::Idx, fit->second.idx );
|
||||||
|
auto cit = m_checkedFileStrings.find( ref );
|
||||||
|
if( cit == m_checkedFileStrings.end() ) CacheSource( ref );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pendingCustomStrings.erase( fit );
|
m_pendingCustomStrings.erase( fit );
|
||||||
|
Loading…
Reference in New Issue
Block a user