1
0
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:
Bartosz Taudul
2020-05-23 15:08:26 +02:00
parent 964d65fd3b
commit d470202bca
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -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;
}
}