From ec3e88ce53d0d210ffeab3484d0acd37362c063c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 4 Sep 2022 13:37:19 +0200 Subject: [PATCH] Manage GPU index counter in View. --- server/TracyView.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 9eba9e0b..ce4788c0 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -112,6 +112,7 @@ public: const ViewData& GetViewData() const { return m_vd; } ShortenName GetShortenName() const { return m_shortenName; } + int GetNextGpuIdx() { return m_gpuIdx++; } void HighlightThread( uint64_t thread ); void ZoomToRange( int64_t start, int64_t end, bool pause = true ); @@ -559,6 +560,8 @@ private: void(*m_cbMainThread)(std::function, bool); + int m_gpuIdx = 0; + struct FindZone { enum : uint64_t { Unselected = std::numeric_limits::max() - 1 }; enum class GroupBy : int { Thread, UserText, ZoneName, Callstack, Parent, NoGrouping };