diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-03-30 02:52:25 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-03-30 02:52:25 +0300 |
commit | 48a07bf4f881d880b52b16f6aa6d3144f6c03beb (patch) | |
tree | a526253bf9a188705bd304949d49af1d17462577 /server/TracyView.hpp | |
parent | b0ab3c6139a28e152c49971cf3d3e2509bf48ac2 (diff) |
Cache zone self times.
Diffstat (limited to 'server/TracyView.hpp')
-rw-r--r-- | server/TracyView.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 9a649117..e2544c93 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -188,6 +188,8 @@ private: int64_t GetZoneChildTime( const ZoneEvent& zone ); int64_t GetZoneChildTime( const GpuEvent& zone ); int64_t GetZoneChildTimeFast( const ZoneEvent& zone ); + int64_t GetZoneSelfTime( const ZoneEvent& zone ); + int64_t GetZoneSelfTime( const GpuEvent& zone ); flat_hash_map<const void*, VisData, nohash<const void*>> m_visData; flat_hash_map<uint64_t, bool, nohash<uint64_t>> m_visibleMsgThread; @@ -472,6 +474,11 @@ private: std::unique_ptr<int64_t[]> bins; bool drawAvgMed = true; } m_frameSortData; + + struct { + std::pair<const ZoneEvent*, int64_t> zoneSelfTime = { nullptr, 0 }; + std::pair<const GpuEvent*, int64_t> gpuSelfTime = { nullptr, 0 }; + } m_cache; }; } |