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-03 20:25:02 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-03 20:25:02 +0300
commit0c4ca4cd693f63017287701ec2a84f90d5d36971 (patch)
treebe762bf8d0309887c27889d1e9337449f2b6e9e7 /server
parente19a3a8767cb54218fdf528279a804299213e801 (diff)
Add function for highlighting a thread.
Diffstat (limited to 'server')
-rw-r--r--server/TracyView.cpp6
-rw-r--r--server/TracyView.hpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index 3e66d11c..c06c50eb 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -1277,4 +1277,10 @@ bool View::Save( const char* fn, FileWrite::Compression comp, int zlevel, bool b
return true;
}
+void View::HighlightThread( uint64_t thread )
+{
+ m_drawThreadMigrations = thread;
+ m_drawThreadHighlight = thread;
+}
+
}
diff --git a/server/TracyView.hpp b/server/TracyView.hpp
index 2ccf0836..3b69110b 100644
--- a/server/TracyView.hpp
+++ b/server/TracyView.hpp
@@ -113,6 +113,7 @@ public:
ShortenName GetShortenName() const { return m_shortenName; }
+ void HighlightThread( uint64_t thread );
void ZoomToRange( int64_t start, int64_t end, bool pause = true );
void DrawPlot( PlotData& plot, double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax );