Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2021-02-07 17:52:08 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2021-02-07 17:52:08 +0300
commit417d5265815692fb87127fba3f9446b6b2f17ebe (patch)
tree80710043b79d4b6e848cf94a54f05ad5cbfb339b /server/TracyEvent.hpp
parent90c873421c2fccc0db1eac70bf4d0f45accec896 (diff)
Use SortedVector for plot data.
Diffstat (limited to 'server/TracyEvent.hpp')
-rw-r--r--server/TracyEvent.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp
index e46333a9..23f876f8 100644
--- a/server/TracyEvent.hpp
+++ b/server/TracyEvent.hpp
@@ -9,6 +9,7 @@
#include "TracyCharUtil.hpp"
#include "TracyShortPtr.hpp"
+#include "TracySortedVector.hpp"
#include "TracyVector.hpp"
#include "tracy_robin_hood.h"
#include "../common/TracyForceInline.hpp"
@@ -636,12 +637,12 @@ enum class PlotValueFormatting : uint8_t
struct PlotData
{
+ struct PlotItemSort { bool operator()( const PlotItem& lhs, const PlotItem& rhs ) { return lhs.time.Val() < rhs.time.Val(); }; };
+
uint64_t name;
double min;
double max;
- Vector<PlotItem> data;
- Vector<PlotItem> postpone;
- uint64_t postponeTime;
+ SortedVector<PlotItem, PlotItemSort> data;
PlotType type;
PlotValueFormatting format;
};