mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Cosmetics.
This commit is contained in:
parent
03e849a9ff
commit
6c728f6d23
@ -7389,8 +7389,7 @@ void Worker::CacheSource( const StringRef& str )
|
|||||||
m_checkedFileStrings.emplace( str );
|
m_checkedFileStrings.emplace( str );
|
||||||
auto file = GetString( str );
|
auto file = GetString( str );
|
||||||
// Possible duplication of pointer and index strings
|
// Possible duplication of pointer and index strings
|
||||||
if( m_data.sourceFileCache.find( file ) == m_data.sourceFileCache.end() )
|
if( m_data.sourceFileCache.find( file ) != m_data.sourceFileCache.end() ) return;
|
||||||
{
|
|
||||||
if( SourceFileValid( file, GetCaptureTime() ) )
|
if( SourceFileValid( file, GetCaptureTime() ) )
|
||||||
{
|
{
|
||||||
FILE* f = fopen( file, "rb" );
|
FILE* f = fopen( file, "rb" );
|
||||||
@ -7402,7 +7401,6 @@ void Worker::CacheSource( const StringRef& str )
|
|||||||
fclose( f );
|
fclose( f );
|
||||||
m_data.sourceFileCache.emplace( file, MemoryBlock{ src, uint32_t( sz ) } );
|
m_data.sourceFileCache.emplace( file, MemoryBlock{ src, uint32_t( sz ) } );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t Worker::GetSourceFileCacheSize() const
|
uint64_t Worker::GetSourceFileCacheSize() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user