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

Cache zone time distribution data.

This commit is contained in:
Bartosz Taudul
2019-10-20 03:24:58 +02:00
parent 4d761def61
commit ccdc102d5a
2 changed files with 35 additions and 28 deletions
+9
View File
@@ -47,6 +47,12 @@ class View
int64_t end;
};
struct ZoneTimeData
{
int64_t time;
uint64_t count;
};
public:
struct VisData
{
@@ -575,6 +581,9 @@ private:
enum class SortBy : int { Count, Time, Mtpc };
SortBy sortBy = SortBy::Time;
bool runningTime = false;
flat_hash_map<int16_t, ZoneTimeData, nohash<uint16_t>> data;
const ZoneEvent* dataValidFor = nullptr;
float fztime;
} m_timeDist;
};