Allow raw access to source location zones data.

This commit is contained in:
Bartosz Taudul 2018-03-24 14:48:52 +01:00
parent 948c6f405c
commit aa9d9575e0
2 changed files with 3 additions and 1 deletions

View File

@ -130,8 +130,10 @@ public:
const SourceLocation& GetSourceLocation( int32_t srcloc ) const; const SourceLocation& GetSourceLocation( int32_t srcloc ) const;
std::vector<int32_t> GetMatchingSourceLocation( const char* query ) const; std::vector<int32_t> GetMatchingSourceLocation( const char* query ) const;
#ifndef TRACY_NO_STATISTICS #ifndef TRACY_NO_STATISTICS
const SourceLocationZones& GetZonesForSourceLocation( int32_t srcloc ) const; const SourceLocationZones& GetZonesForSourceLocation( int32_t srcloc ) const;
const flat_hash_map<int32_t, SourceLocationZones, nohash<int32_t>>& GetSourceLocationZones() const { return m_data.sourceLocationZones; }
#endif #endif
tracy_force_inline uint16_t CompressThread( uint64_t thread ); tracy_force_inline uint16_t CompressThread( uint64_t thread );