mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +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
|
// reverse topological order to accumulate total memory usage of all children
|
||||||
auto i = sorting[sorting.Size()-1-i_];
|
auto i = sorting[sorting.Size()-1-i_];
|
||||||
if(parents[i]==-1)
|
if(i==0)
|
||||||
root.size += nodes[i]->size;
|
continue;
|
||||||
else
|
nodes[parents[i]]->size += nodes[i]->size;
|
||||||
nodes[parents[i]]->size += nodes[i]->size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WriteSunburstHTML( root, fname, false );
|
WriteSunburstHTML( root, fname, false );
|
||||||
|
Loading…
Reference in New Issue
Block a user