Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-27 23:31:53 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-27 23:31:53 +0300
commita8276c41c34ed0321ddcc9e41623be830fde0a30 (patch)
tree8f7d165f26e413f8e1f06dd5e183a4f360c9bf41 /server
parenta8be0bc91efa1b14da5bf196b829e0462aecff96 (diff)
Allow checking whether View was active.
Currently this only checks if client connection is active.
Diffstat (limited to 'server')
-rw-r--r--server/TracyView.cpp5
-rw-r--r--server/TracyView.hpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index ca9e33dd..af14f3cd 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -1288,4 +1288,9 @@ void View::HighlightThread( uint64_t thread )
m_drawThreadHighlight = thread;
}
+bool View::WasActive() const
+{
+ return m_worker.IsConnected();
+}
+
}
diff --git a/server/TracyView.hpp b/server/TracyView.hpp
index 0be47b75..6567d570 100644
--- a/server/TracyView.hpp
+++ b/server/TracyView.hpp
@@ -96,6 +96,7 @@ public:
~View();
static bool Draw();
+ bool WasActive() const;
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
void ViewSource( const char* fileName, int line );