1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Manage GPU index counter in View.

This commit is contained in:
Bartosz Taudul 2022-09-04 13:37:19 +02:00
parent 2711af39e5
commit ec3e88ce53
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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<void()>, bool);
int m_gpuIdx = 0;
struct FindZone {
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
enum class GroupBy : int { Thread, UserText, ZoneName, Callstack, Parent, NoGrouping };