mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Add hardware samples accessors.
This commit is contained in:
parent
373a2b66c6
commit
3228e20c2e
@ -7680,4 +7680,11 @@ Worker::MemoryBlock Worker::GetSourceFileFromCache( const char* file ) const
|
||||
return it->second;
|
||||
}
|
||||
|
||||
const HwSampleData* Worker::GetHwSampleData( uint64_t addr ) const
|
||||
{
|
||||
auto it = m_data.hwSamples.find( addr );
|
||||
if( it == m_data.hwSamples.end() ) return nullptr;
|
||||
return &it->second;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -449,6 +449,7 @@ public:
|
||||
uint64_t GetGhostZonesCount() const { return m_data.ghostCnt; }
|
||||
uint32_t GetFrameImageCount() const { return (uint32_t)m_data.frameImage.size(); }
|
||||
uint64_t GetStringsCount() const { return m_data.strings.size() + m_data.stringData.size(); }
|
||||
uint64_t GetHwSampleCount() const { return m_data.hwSamples.size(); }
|
||||
#ifndef TRACY_NO_STATISTICS
|
||||
uint64_t GetChildSamplesCountSyms() const { return m_data.childSamples.size(); }
|
||||
uint64_t GetChildSamplesCountFull() const;
|
||||
@ -470,6 +471,7 @@ public:
|
||||
uint64_t GetSourceFileCacheCount() const { return m_data.sourceFileCache.size(); }
|
||||
uint64_t GetSourceFileCacheSize() const;
|
||||
MemoryBlock GetSourceFileFromCache( const char* file ) const;
|
||||
const HwSampleData* GetHwSampleData( uint64_t addr ) const;
|
||||
|
||||
int64_t GetFrameTime( const FrameData& fd, size_t idx ) const;
|
||||
int64_t GetFrameBegin( const FrameData& fd, size_t idx ) const;
|
||||
|
Loading…
Reference in New Issue
Block a user