Move Range, RangeSlim from TracyViewData.hpp to TracyUtility.hpp.

This commit is contained in:
Bartosz Taudul
2026-07-14 19:12:59 +02:00
parent a8d5f12f16
commit ece976e820
2 changed files with 23 additions and 23 deletions
+23
View File
@@ -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,
-23
View File
@@ -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;