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.
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.
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.
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.
Ok. The default profiling roots for project being selected when clicking on "Sources" node makes sense.
RootMethodSelector will select the project default profiling roots when "Sources" node is clicked. http://hg.netbeans.org/profiler-main/rev/537cf500793b
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