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 - Recursive methods
Summary: Recursive methods
Status: NEW
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-20 19:12 UTC by Tim Lebedkov
Modified: 2007-05-20 19:12 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.