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.
Build: NetBeans IDE Dev (Build 20120613-8c863e71f71d) VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b04, Java(TM) SE Runtime Environment, 1.7.0_06-ea-b13 OS: Mac OS X User Comments: choces: Profiling with Substance Look and Feel settings GUEST: Profiling a program. GUEST: trying to take a snapshot of a profiling session glassfish 3.0.1. cyhelsky: profile anagram - instrumented - select everything as root method - profile only project classes -> take snapshot Stacktrace: org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot$NoDataAvailableException at org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot.<init>(CPUResultsSnapshot.java:200) at org.netbeans.lib.profiler.ProfilerClient.getCPUProfilingResultsSnapshot(ProfilerClient.java:514) at org.netbeans.modules.profiler.ResultsManager.prepareSnapshot(ResultsManager.java:712) at org.netbeans.modules.profiler.ResultsManager.prepareSnapshot(ResultsManager.java:687) at org.netbeans.modules.profiler.ResultsManager.takeSnapshot(ResultsManager.java:855) at org.netbeans.modules.profiler.ProfilerControlPanel2$ResultsSnippetPanel$1.run(ProfilerControlPanel2.java:832)
Created attachment 120777 [details] stacktrace
Steps: Profile anagram (CPU,Instrumented, profile only project classes) -> reset results> maximize and minimize anagram to enable the take snapshot button -> take snapshot
Created attachment 126589 [details] stacktrace
Created attachment 126590 [details] stacktrace
Created attachment 126591 [details] stacktrace
Created attachment 126735 [details] stacktrace profile anagram with profiling points set -> reset results -> show anagram window -> take snapshot
The exception is also reproducible using two profiling points: insert Reset Results at the beginning of Anagrams.initComponents() and Take Snapshot at the end of Anagrams.initComponents().
I think this should be at least P2, since it is a feature that does not work at all.
Actually works correctly, at least for the two profiling points described in my last comment. No data are collected since no profiling roots are executed between Reset Results and Take Snapshot. To collect the data for this particular case, Libraries/javax.swing needs to be selected as a profiling root. Anyway, it shouldn't throw exceptions when misconfigured.
Fixed in profiler-main changeset: 238726:3f5cccbb0b94 user: Tomas Hurka <thurka@netbeans.org> date: Fri Nov 09 11:53:25 2012 +0100 summary: bugfix #214119, make sure that we have profiling data (for instrumented CPU profiling only)
Integrated into 'main-golden', will be available in build *201211150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/3f5cccbb0b94 User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #214119, make sure that we have profiling data (for instrumented CPU profiling only)