diff options
author | Bartosz Taudul <bartosz.taudul@game-lion.com> | 2019-05-09 14:37:28 +0300 |
---|---|---|
committer | Bartosz Taudul <bartosz.taudul@game-lion.com> | 2019-05-09 14:37:28 +0300 |
commit | 54c8a882c91618321749decc8715f081b5ac2a0f (patch) | |
tree | a6e4d85549438c3d62aa401187144fc0ab93bf4e /server/TracyView.hpp | |
parent | 98eaacec907dec6162fdd1ceba6340e221e32506 (diff) |
Allow restricting call stack frame tree to active allocations.
Diffstat (limited to 'server/TracyView.hpp')
-rw-r--r-- | server/TracyView.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 6212019f..8dd4ee80 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -133,7 +133,7 @@ private: template<class T> void ListMemData( T ptr, T end, std::function<void(T&)> DrawAddress, const char* id = nullptr, int64_t startTime = -1 ); - flat_hash_map<uint32_t, PathData, nohash<uint32_t>> GetCallstackPaths( const MemData& mem ) const; + flat_hash_map<uint32_t, PathData, nohash<uint32_t>> GetCallstackPaths( const MemData& mem, bool onlyActive ) const; flat_hash_map<uint64_t, CallstackFrameTree, nohash<uint64_t>> GetCallstackFrameTreeBottomUp( const MemData& mem ) const; flat_hash_map<uint64_t, CallstackFrameTree, nohash<uint64_t>> GetCallstackFrameTreeTopDown( const MemData& mem ) const; void DrawFrameTreeLevel( const flat_hash_map<uint64_t, CallstackFrameTree, nohash<uint64_t>>& tree, int& idx ); @@ -312,6 +312,8 @@ private: bool m_groupCallstackTreeByNameBottomUp = true; bool m_groupCallstackTreeByNameTopDown = true; + bool m_activeOnlyBottomUp = false; + bool m_activeOnlyTopDown = false; struct FindZone { enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 }; |