mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display source file cache stats.
This commit is contained in:
@@ -7324,4 +7324,14 @@ void Worker::CacheSource( const StringRef& str )
|
||||
}
|
||||
}
|
||||
|
||||
uint64_t Worker::GetSourceFileCacheSize() const
|
||||
{
|
||||
uint64_t cnt = 0;
|
||||
for( auto& v : m_data.sourceFileCache )
|
||||
{
|
||||
cnt += v.second.len;
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user