mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Allow raw access to source location zones data.
This commit is contained in:
parent
948c6f405c
commit
aa9d9575e0
@ -3461,7 +3461,7 @@ void View::DrawStatistics()
|
|||||||
ImGui::TextWrapped( "Collection of statistical data is disabled in this build." );
|
ImGui::TextWrapped( "Collection of statistical data is disabled in this build." );
|
||||||
ImGui::TextWrapped( "Rebuild without the TRACY_NO_STATISTICS macro to enable statistics view." );
|
ImGui::TextWrapped( "Rebuild without the TRACY_NO_STATISTICS macro to enable statistics view." );
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user