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.
070620, Linux, 2Gb RAM. I open nbbuild (as main), openide{fs,masterfs}, projects/{queries,projectapi}, java/{project,j2seproject}, ant/project. I select Profile Main Project, accept JDK 6 as the platform, and try to choose different options from Profile CPU such as Profile Entire Application, Profile Projects, etc. After each selection, the IDE freezes at 100% CPU for a couple of minutes. I took a look at the custom filter dialog and saw to my horror that it had entered _every package in the IDE's 500+ modules_, or 3112 packages in total. Basically I have found the profiler completely unusable for my work.
Created attachment 44233 [details] Some thread dumps
Marking with THREAD since besides the extreme slowness, a major part of the problem is that all this computation happens in EQ with no progress indication or way to cancel.
Looks similar to your Issue 81765, just the thread dump is a bit different.
Could be dupe. In issue #81765 it is said that "computing of java source roots was improved" but it is still unusable, I think.
Projects, subprojects, source roots and all packages are now processed lazily after selecting profiling task & settings in separate thread. Fixed for Beta1.
jglick, could you please verify this issue?
Open ide/allmodules in a dev build (basic config), JDK 6, wait for CP scanning to end. Profile Main Project. Click Part of Application, Filter = Profile Project & Subprojects Classes, click Show filter value. As expected, shows "Computing filter..." and disk starts thrashing. After clicking Close button, task is not cancelled, which is annoying, but it does finish after a couple minutes. Clicking Show filter value again displays a lot of packages in a JList, which looks OK. I can only presume these are all module packages - the list is not apparently sorted so I cannot find anything in particular.
Thanks for your feedback! List of packages is now alphabetically sorted, cancelling the dialog - stopping searching for packages - is tracked by Issue 115126.