mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Non-memory tree callstacks are not needed.
This commit is contained in:
parent
b4726833e9
commit
1d7ab70199
@ -478,7 +478,6 @@ struct CallstackFrameTree
|
|||||||
CallstackFrameId frame;
|
CallstackFrameId frame;
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
unordered_flat_map<uint64_t, CallstackFrameTree> children;
|
unordered_flat_map<uint64_t, CallstackFrameTree> children;
|
||||||
unordered_flat_set<uint32_t> callstacks;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum { CallstackFrameTreeSize = sizeof( CallstackFrameTree ) };
|
enum { CallstackFrameTreeSize = sizeof( CallstackFrameTree ) };
|
||||||
|
@ -16966,13 +16966,11 @@ unordered_flat_map<uint64_t, CallstackFrameTree> View::GetCallstackFrameTreeBott
|
|||||||
if( treePtr )
|
if( treePtr )
|
||||||
{
|
{
|
||||||
treePtr->count += path.second;
|
treePtr->count += path.second;
|
||||||
treePtr->callstacks.emplace( path.first );
|
|
||||||
for( int i = int( cs.size() ) - 2; i >= 0; i-- )
|
for( int i = int( cs.size() ) - 2; i >= 0; i-- )
|
||||||
{
|
{
|
||||||
treePtr = GetFrameTreeItemGroup( treePtr->children, cs[i], m_worker );
|
treePtr = GetFrameTreeItemGroup( treePtr->children, cs[i], m_worker );
|
||||||
if( !treePtr ) break;
|
if( !treePtr ) break;
|
||||||
treePtr->count += path.second;
|
treePtr->count += path.second;
|
||||||
treePtr->callstacks.emplace( path.first );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -16985,13 +16983,10 @@ unordered_flat_map<uint64_t, CallstackFrameTree> View::GetCallstackFrameTreeBott
|
|||||||
auto base = cs.back();
|
auto base = cs.back();
|
||||||
auto treePtr = GetFrameTreeItemNoGroup( root, base, m_worker );
|
auto treePtr = GetFrameTreeItemNoGroup( root, base, m_worker );
|
||||||
treePtr->count += path.second;
|
treePtr->count += path.second;
|
||||||
treePtr->callstacks.emplace( path.first );
|
|
||||||
|
|
||||||
for( int i = int( cs.size() ) - 2; i >= 0; i-- )
|
for( int i = int( cs.size() ) - 2; i >= 0; i-- )
|
||||||
{
|
{
|
||||||
treePtr = GetFrameTreeItemNoGroup( treePtr->children, cs[i], m_worker );
|
treePtr = GetFrameTreeItemNoGroup( treePtr->children, cs[i], m_worker );
|
||||||
treePtr->count += path.second;
|
treePtr->count += path.second;
|
||||||
treePtr->callstacks.emplace( path.first );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -17061,14 +17056,11 @@ unordered_flat_map<uint64_t, CallstackFrameTree> View::GetCallstackFrameTreeTopD
|
|||||||
if( treePtr )
|
if( treePtr )
|
||||||
{
|
{
|
||||||
treePtr->count += path.second;
|
treePtr->count += path.second;
|
||||||
treePtr->callstacks.emplace( path.first );
|
|
||||||
|
|
||||||
for( uint16_t i = 1; i < cs.size(); i++ )
|
for( uint16_t i = 1; i < cs.size(); i++ )
|
||||||
{
|
{
|
||||||
treePtr = GetFrameTreeItemGroup( treePtr->children, cs[i], m_worker );
|
treePtr = GetFrameTreeItemGroup( treePtr->children, cs[i], m_worker );
|
||||||
if( !treePtr ) break;
|
if( !treePtr ) break;
|
||||||
treePtr->count += path.second;
|
treePtr->count += path.second;
|
||||||
treePtr->callstacks.emplace( path.first );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -17081,13 +17073,10 @@ unordered_flat_map<uint64_t, CallstackFrameTree> View::GetCallstackFrameTreeTopD
|
|||||||
auto base = cs.front();
|
auto base = cs.front();
|
||||||
auto treePtr = GetFrameTreeItemNoGroup( root, base, m_worker );
|
auto treePtr = GetFrameTreeItemNoGroup( root, base, m_worker );
|
||||||
treePtr->count += path.second;
|
treePtr->count += path.second;
|
||||||
treePtr->callstacks.emplace( path.first );
|
|
||||||
|
|
||||||
for( uint16_t i = 1; i < cs.size(); i++ )
|
for( uint16_t i = 1; i < cs.size(); i++ )
|
||||||
{
|
{
|
||||||
treePtr = GetFrameTreeItemNoGroup( treePtr->children, cs[i], m_worker );
|
treePtr = GetFrameTreeItemNoGroup( treePtr->children, cs[i], m_worker );
|
||||||
treePtr->count += path.second;
|
treePtr->count += path.second;
|
||||||
treePtr->callstacks.emplace( path.first );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user