#1346 Descendants info not reset on profiler::reset

open
nobody
profiler (11)
5
2013-02-04
2013-02-04
No

Look at the result of this script:
-----------
package require profiler
profiler::init
proc profile_a {} {
for {set f 0} {$f<100} {incr f} {
profile_b
}
}

proc profile_b {} {
for {set f 0} {$f<100000} {incr f} {}
}

profile_a
profiler::reset
profile_a
puts [profiler::print]
-----------
for profile_a, it prints:
Total runtime: 729842
Total descendant time: 1441896
i.e. Total descendant time>Total runtime
The problem is that ::profiler::descendants isn't modified in ::profiler::reset.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks