This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 104368

Summary: Recursive methods
Product: profiler Reporter: Tim Lebedkov <lebedkov>
Component: BaseAssignee: issues@profiler <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Tim Lebedkov 2007-05-20 19:12:56 UTC
I had the following code:

void writeTask() {
   slowPart();
   foreach(subtask) {
       writeTask();
   }
}

after profiling the code it was not clear which method in slowPart() was slow
because it was called from different recursion levels. 

I reorganized the code like this:

void writeTask() {
   writeTask0();
   foreach(subtask) {
       writeTask();
   }
}

void writeTask0() {
   slowPart();
}

and profiled only writeTask0() and was able to find the slow method. Please add
the possibility to "collapse" recursive calls and show sums of spent times.