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

@ -3461,7 +3461,7 @@ void View::DrawStatistics()
ImGui::TextWrapped( "Collection of statistical data is disabled in this build." );
ImGui::TextWrapped( "Rebuild without the TRACY_NO_STATISTICS macro to enable statistics view." );
#else
#endif
ImGui::End();
}

View File

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