From aa9d9575e0f4a909c49e4aa8088fc09f8b08e202 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 24 Mar 2018 14:48:52 +0100 Subject: [PATCH] Allow raw access to source location zones data. --- server/TracyView.cpp | 2 +- server/TracyWorker.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 499bd062..43926442 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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(); } diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index a5067483..748181de 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -130,8 +130,10 @@ public: const SourceLocation& GetSourceLocation( int32_t srcloc ) const; std::vector GetMatchingSourceLocation( const char* query ) const; + #ifndef TRACY_NO_STATISTICS const SourceLocationZones& GetZonesForSourceLocation( int32_t srcloc ) const; + const flat_hash_map>& GetSourceLocationZones() const { return m_data.sourceLocationZones; } #endif tracy_force_inline uint16_t CompressThread( uint64_t thread );