From d737b911e93eb8a4f844977fb1fd46c187b1bd13 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Apr 2023 18:44:17 +0200 Subject: [PATCH] Make View::Vis() public. --- server/TracyView.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 3a7c158a..b00223fc 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -126,6 +126,13 @@ public: const MessageData* GetMessageHighlight() const { return m_msgHighlight; } + tracy_force_inline bool& Vis( const void* ptr ) + { + auto it = m_visMap.find( ptr ); + if( it == m_visMap.end() ) it = m_visMap.emplace( ptr, true ).first; + return it->second; + } + void HighlightThread( uint64_t thread ); void ZoomToRange( int64_t start, int64_t end, bool pause = true ); bool DrawPlot( const TimelineContext& ctx, PlotData& plot, int& offset ); @@ -396,13 +403,6 @@ private: static const char* DecodeContextSwitchReason( uint8_t reason ); static const char* DecodeContextSwitchReasonCode( uint8_t reason ); - tracy_force_inline bool& Vis( const void* ptr ) - { - auto it = m_visMap.find( ptr ); - if( it == m_visMap.end() ) it = m_visMap.emplace( ptr, true ).first; - return it->second; - } - Worker m_worker; std::string m_filename, m_filenameStaging; bool m_staticView;