1
0
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:
Bartosz Taudul
2021-02-07 19:35:53 +01:00
parent 0100d0beb4
commit 18e893752b
2 changed files with 21 additions and 13 deletions
+3 -1
View File
@@ -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;