diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-04-03 17:24:16 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-04-03 17:24:16 +0300 |
commit | a7886cf82c231c8b9bdbd206dbfb0d77ffe85a96 (patch) | |
tree | e0ad9596ee5bead2cafbe073477d55c43f9f0d9b /server/TracyView.hpp | |
parent | 82dad3fb97194c8f17efb1a57a551ff0d790dfeb (diff) |
Replace linear search with hash lookup.
Diffstat (limited to 'server/TracyView.hpp')
-rw-r--r-- | server/TracyView.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/TracyView.hpp b/server/TracyView.hpp index be2595fa..0a98be57 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -134,9 +134,9 @@ private: 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; - std::vector<CallstackFrameTree> GetCallstackFrameTreeBottomUp( const MemData& mem ) const; - std::vector<CallstackFrameTree> GetCallstackFrameTreeTopDown( const MemData& mem ) const; - void DrawFrameTreeLevel( std::vector<CallstackFrameTree>& tree, int& idx ); + 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 ); void DrawZoneList( const Vector<ZoneEvent*>& zones ); void DrawInfoWindow(); |