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

Store MemEvents directly in the vector.

This commit is contained in:
Bartosz Taudul
2018-04-03 14:17:51 +02:00
parent bc27c99a1e
commit bf99bff87d
5 changed files with 55 additions and 48 deletions
+2 -2
View File
@@ -224,8 +224,8 @@ struct PlotData
struct MemData
{
Vector<MemEvent*> data;
flat_hash_map<uint64_t, MemEvent*, nohash<uint64_t>> active;
Vector<MemEvent> data;
flat_hash_map<uint64_t, size_t, nohash<uint64_t>> active;
uint64_t high = std::numeric_limits<uint64_t>::min();
uint64_t low = std::numeric_limits<uint64_t>::max();
uint64_t usage = 0;