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

Move call stack paths calculation to a separate function.

This commit is contained in:
Bartosz Taudul
2019-02-06 13:46:50 +01:00
parent dbf8115771
commit c689a494da
2 changed files with 14 additions and 8 deletions
+7
View File
@@ -72,6 +72,12 @@ private:
enum { InvalidId = 0xFFFFFFFF };
struct PathData
{
uint32_t cnt;
uint64_t mem;
};
void InitTextEditor();
const char* ShortenNamespace( const char* name ) const;
@@ -113,6 +119,7 @@ private:
template<class T>
void ListMemData( T ptr, T end, std::function<void(T&)> DrawAddress, const char* id = nullptr );
flat_hash_map<uint32_t, PathData, nohash<uint32_t>> GetCallstackPaths( const MemData& mem ) const;
std::vector<CallstackFrameTree> GetCallstackFrameTree( const MemData& mem ) const;
void DrawFrameTreeLevel( std::vector<CallstackFrameTree>& tree, int& idx );