You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's worth noting that merely doing #15 handles this for times.
To get it for counters as well, we may want to do something like
leaf nodes only have counters
when a leaf node becomes an intermediate node, do a conversion that shifts the counters into a first child.
eg
heimdall.start('a');heimdall.statsFor('x').foo++;// a has statsheimdall.start('b');// at this point a no longer has stats, but has two children, a_0 who starts at a start and stops at b start. a_0 has the stats that a used to have.heimdall.stop('b');// at this point there is now a_1 who starts when b stops and will stop when a stopsheimdall.statsFor('x').foo++;heimdall.stop('a');
if parent a has children b, c we currently report three times
a
selftimeb
selftimec
selftimebut it is often interesting to know time (and other stats) of
a
separated between (0-b), (b-c), (c-end).Seems like this could be done by utilizing a fix for #13
The text was updated successfully, but these errors were encountered: