mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +00:00
Cached source files accessor.
This commit is contained in:
parent
964d65fd3b
commit
d470202bca
@ -7371,4 +7371,11 @@ uint64_t Worker::GetSourceFileCacheSize() const
|
|||||||
return cnt;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -426,6 +426,7 @@ public:
|
|||||||
void GetCpuUsageAtTime( int64_t time, int& own, int& other ) const;
|
void GetCpuUsageAtTime( int64_t time, int& own, int& other ) const;
|
||||||
uint64_t GetSourceFileCacheCount() const { return m_data.sourceFileCache.size(); }
|
uint64_t GetSourceFileCacheCount() const { return m_data.sourceFileCache.size(); }
|
||||||
uint64_t GetSourceFileCacheSize() const;
|
uint64_t GetSourceFileCacheSize() const;
|
||||||
|
MemoryBlock GetSourceFileFromCache( const char* file ) const;
|
||||||
|
|
||||||
int64_t GetFrameTime( const FrameData& fd, size_t idx ) const;
|
int64_t GetFrameTime( const FrameData& fd, size_t idx ) const;
|
||||||
int64_t GetFrameBegin( const FrameData& fd, size_t idx ) const;
|
int64_t GetFrameBegin( const FrameData& fd, size_t idx ) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user