mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +00:00
Always fill source code query queue when performing a query.
Previous implementation made these two events separate.
This commit is contained in:
parent
a85c0e18d2
commit
fc85e46f31
@ -3444,6 +3444,7 @@ void Worker::QuerySourceFile( const char* fn, const char* image )
|
|||||||
{
|
{
|
||||||
if( image ) QueryDataTransfer( image, strlen( image ) + 1 );
|
if( image ) QueryDataTransfer( image, strlen( image ) + 1 );
|
||||||
QueryDataTransfer( fn, strlen( fn ) + 1 );
|
QueryDataTransfer( fn, strlen( fn ) + 1 );
|
||||||
|
m_sourceCodeQuery.emplace_back( fn );
|
||||||
Query( ServerQuerySourceCode, 0 );
|
Query( ServerQuerySourceCode, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8571,7 +8572,6 @@ void Worker::CacheSource( const StringRef& str, const StringIdx& image )
|
|||||||
}
|
}
|
||||||
else if( execTime != 0 )
|
else if( execTime != 0 )
|
||||||
{
|
{
|
||||||
m_sourceCodeQuery.emplace_back( file );
|
|
||||||
QuerySourceFile( file, image.Active() ? GetString( image ) : nullptr );
|
QuerySourceFile( file, image.Active() ? GetString( image ) : nullptr );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user