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 203295 - Incorrect selection in Root method selector
Summary: Incorrect selection in Root method selector
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 11:52 UTC by Tomas Hurka
Modified: 2011-10-14 14:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2011-10-07 11:52:55 UTC
Steps:

1) create AnagramGame
2) invoke Profile-> Profile Main Project
3) Go to 'Edit Profiling Roots'
4) Expand "Libraries" node, expand 'com'
5) Expand 'Source" node
6) Deselect "Sources" node
7) Select "Sources" node
as an unwanted side-effect all com packages from Libraries node are selected too.
Comment 1 J Bachorik 2011-10-07 12:25:48 UTC
There is no way to distinguish between profiling root com.** coming from libraries and the one coming from sources. Additionally, for performance reasons, when you click on "Sources" or "Libraries" only the first level packages are computed and profiling roots are generated from them.

I am not really sure what to to about this but IMHO the behavior reflects the way the profiling roots are used - once you tell the profiler to have com.** profiling root it doesn't care whether it came from sources or libraries.

While it might be feasible to enumerate all the classes as profiling roots when one clicks on "Sources" it will surely become performance hell in case of "Libraries" :(

If you are able to come up with a clever solution to this, feel free to reopen this issue.
Comment 2 Tomas Hurka 2011-10-07 13:25:49 UTC
I did not tell profiler to have com.** as profiling roots. I selected "Sources" node. Note that the selection is OK for the first time - all packages in "Sources" are selected, nothing is selected in Libraries and also note that we compute all "Source" packages anyway so you should be able to select project packages, when "Sources" node is selected.
Comment 3 J Bachorik 2011-10-07 14:04:58 UTC
Ok. The default profiling roots for project being selected when clicking on "Sources" node makes sense.
Comment 4 J Bachorik 2011-10-11 12:42:59 UTC
RootMethodSelector will select the project default profiling roots when "Sources" node is clicked.

http://hg.netbeans.org/profiler-main/rev/537cf500793b
Comment 5 Quality Engineering 2011-10-14 14:59:03 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/537cf500793b
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #203295: RootMethodSelector will select the project default profiling roots when "Sources" node is clicked