Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 11.0-b11
Steps to reproduce:
Create and run DocumentEditor sample application.
Invoke attach profiler dialog.
Create custom configuration.
Select profile part of application and select only main() method as root.
Select Profile exclude Java core classes.
Switch to advanced pane and check "Profile new Threads/Runnables"
Attach to application.
In profiled application type text in editor.
Look at Live Results. There are no data from profiled application.
See also VisualVM bug #132
I am afraid that there are no new Threads/Runnables after you attach to DocumentEditor sample application. Am I right?
Comment from VisualVM: The cause is probably a limitation of NB profiler which only profiles newly
started runnables when no root methods (startclasses in VisualVM) are defined.
Could you please check it with NB profiler (using local dynamic attach which is
used by VisualVM) and eventually file an issue there & update+close this issue?
Update: I checked this issue with local dynamic attach. The same happens when you just type something.
And there is Editor data in results after you save file or do something else. Please comment this behavior.
Maria is right, profiler needs root methods to get some data. There is no root method hit when you type text in editor. Closing as WONTFIX, since this is how
the profiler works. We can enhance profiler functionality when doing dynamic attach to somehow figure out root methods and you don't have root methods