mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
memory tracer - fix memory accumulation of children
This commit is contained in:
parent
b55264e0ee
commit
91f127ef71
@ -1068,10 +1068,9 @@ namespace ngcore
|
||||
{
|
||||
// reverse topological order to accumulate total memory usage of all children
|
||||
auto i = sorting[sorting.Size()-1-i_];
|
||||
if(parents[i]==-1)
|
||||
root.size += nodes[i]->size;
|
||||
else
|
||||
nodes[parents[i]]->size += nodes[i]->size;
|
||||
if(i==0)
|
||||
continue;
|
||||
nodes[parents[i]]->size += nodes[i]->size;
|
||||
}
|
||||
|
||||
WriteSunburstHTML( root, fname, false );
|
||||
|
Loading…
Reference in New Issue
Block a user