mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Cached source files accessor.
This commit is contained in:
@@ -7371,4 +7371,11 @@ uint64_t Worker::GetSourceFileCacheSize() const
|
||||
return cnt;
|
||||
}
|
||||
|
||||
Worker::MemoryBlock Worker::GetSourceFileFromCache( const char* file ) const
|
||||
{
|
||||
auto it = m_data.sourceFileCache.find( file );
|
||||
if( it == m_data.sourceFileCache.end() ) return MemoryBlock {};
|
||||
return it->second;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user