Run source file query on payloaded source locations.

This commit is contained in:
Bartosz Taudul 2022-08-17 16:02:24 +02:00
parent a237f108c7
commit e8aaf5fa99
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3973,6 +3973,10 @@ void Worker::AddSourceLocationPayload( uint64_t ptr, const char* data, size_t sz
m_data.sourceLocationPayloadMap.emplace( slptr, idx );
m_pendingSourceLocationPayload = -int16_t( idx + 1 );
m_data.sourceLocationPayload.push_back( slptr );
if( m_checkedFileStrings.find( srcloc.file ) == m_checkedFileStrings.end() )
{
CacheSource( srcloc.file );
}
const auto key = -int16_t( idx + 1 );
#ifndef TRACY_NO_STATISTICS
auto res = m_data.sourceLocationZones.emplace( key, SourceLocationZones() );