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 };