diff --git a/profiler/src/profiler/TracyUtility.hpp b/profiler/src/profiler/TracyUtility.hpp index 5251afee..166bb868 100644 --- a/profiler/src/profiler/TracyUtility.hpp +++ b/profiler/src/profiler/TracyUtility.hpp @@ -15,6 +15,29 @@ struct CallstackFrameData; class View; class Worker; +struct Range +{ + void StartFrame() { hiMin = hiMax = false; } + + int64_t min = 0; + int64_t max = 0; + bool active = false; + bool hiMin = false; + bool hiMax = false; + bool modMin = false; + bool modMax = false; +}; + +struct RangeSlim +{ + bool operator==( const Range& other ) const { return other.active == active && other.min == min && other.max == max; } + bool operator!=( const Range& other ) const { return !(*this == other); } + void operator=( const Range& other ) { active = other.active; min = other.min; max = other.max; } + + int64_t min, max; + bool active = false; +}; + enum class ShortenName : uint8_t { Never, diff --git a/profiler/src/profiler/TracyViewData.hpp b/profiler/src/profiler/TracyViewData.hpp index 79dcb079..5edb63f3 100644 --- a/profiler/src/profiler/TracyViewData.hpp +++ b/profiler/src/profiler/TracyViewData.hpp @@ -9,29 +9,6 @@ namespace tracy { -struct Range -{ - void StartFrame() { hiMin = hiMax = false; } - - int64_t min = 0; - int64_t max = 0; - bool active = false; - bool hiMin = false; - bool hiMax = false; - bool modMin = false; - bool modMax = false; -}; - -struct RangeSlim -{ - bool operator==( const Range& other ) const { return other.active == active && other.min == min && other.max == max; } - bool operator!=( const Range& other ) const { return !(*this == other); } - void operator=( const Range& other ) { active = other.active; min = other.min; max = other.max; } - - int64_t min, max; - bool active = false; -}; - struct RangeEntry { Range* range;