Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <bartosz.taudul@game-lion.com>2019-05-09 14:37:28 +0300
committerBartosz Taudul <bartosz.taudul@game-lion.com>2019-05-09 14:37:28 +0300
commit54c8a882c91618321749decc8715f081b5ac2a0f (patch)
treea6e4d85549438c3d62aa401187144fc0ab93bf4e /server/TracyView.hpp
parent98eaacec907dec6162fdd1ceba6340e221e32506 (diff)
Allow restricting call stack frame tree to active allocations.
Diffstat (limited to 'server/TracyView.hpp')
-rw-r--r--server/TracyView.hpp4
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 };