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

Cache statistics range-limited data.

This commit is contained in:
Bartosz Taudul
2020-11-01 16:24:08 +01:00
parent 87c3796e84
commit a48d540854
2 changed files with 60 additions and 24 deletions
+11
View File
@@ -56,6 +56,15 @@ class View
uint64_t count;
};
struct StatisticsCache
{
RangeSlim range;
size_t sourceCount;
size_t count;
int64_t total;
int64_t selfTotal;
};
public:
struct VisData
{
@@ -468,6 +477,8 @@ private:
RangeSlim m_setRangePopup;
bool m_setRangePopupOpen = false;
unordered_flat_map<int16_t, StatisticsCache> m_statCache;
void(*m_cbMainThread)(std::function<void()>);
struct FindZone {