mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Use SortedVector for source location zones.
This commit is contained in:
@@ -172,7 +172,9 @@ public:
|
||||
private:
|
||||
struct SourceLocationZones
|
||||
{
|
||||
Vector<ZoneThreadData> zones;
|
||||
struct ZtdSort { bool operator()( const ZoneThreadData& lhs, const ZoneThreadData& rhs ) { return lhs.Zone()->Start() < rhs.Zone()->Start(); } };
|
||||
|
||||
SortedVector<ZoneThreadData, ZtdSort> zones;
|
||||
int64_t min = std::numeric_limits<int64_t>::max();
|
||||
int64_t max = std::numeric_limits<int64_t>::min();
|
||||
int64_t total = 0;
|
||||
|
||||
Reference in New Issue
Block a user