1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use SortedVector for plot data.

This commit is contained in:
Bartosz Taudul
2021-02-07 15:52:08 +01:00
parent 90c873421c
commit 417d526581
3 changed files with 9 additions and 36 deletions
+4 -3
View File
@@ -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;
};