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 184871 - Profiling the IDE does not work
Summary: Profiling the IDE does not work
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-23 14:55 UTC by Petr Jiricka
Modified: 2010-04-27 07: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 Petr Jiricka 2010-04-23 14:55:12 UTC
1. The IDE was in the middle of long scanning. I pressed the "Profile Me" buttom in the toolbar - the icon changed. 
2. After a while I pressed it again to finish the self-profiling. The button became gray, but the snapshot did not appear in the editor area.

Though now I see that there is a heapdump.hprof file in my userdir (555 MB). I can provide it if requested.
Comment 1 Petr Jiricka 2010-04-23 21:10:41 UTC
The above happened while scanning the entire GlassFish sources.
Regarding the heapdump, when I looked at the objects by retained size, there were the following interesting classes:

org.netbeans.core.ui.sampler.SamplesOutputStream - 47 MB
org.codehaus.plexus.DefaultPlexusContainer - 42 MB
many java.lang.ref.Finalizer -  >5 MB each
Comment 2 Jindrich Sedek 2010-04-26 10:25:36 UTC
Profile me feature is a part of profiler module - reassigning
Comment 3 Tomas Hurka 2010-04-26 10:59:52 UTC
Should be fixed in latest dev. build.
Comment 4 Petr Jiricka 2010-04-26 22:15:28 UTC
Which build fixes this? I am still getting the following in the latest build:

WARNING [org.netbeans.core.TimableEventQueue]: too much time in AWT thread org.netbeans.core.ui.sampler.SelfSamplerAction$Controller@f42879c
WARNING [org.netbeans.core.TimableEventQueue]: no snapshot taken
Comment 5 Petr Jiricka 2010-04-27 07:47:45 UTC
Sorry, my mistake, then it appeared after a while.
Comment 6 Tomas Hurka 2010-04-27 07:59:29 UTC
Ok, FYI:  Yesterday I added progress to saving snapshot. See issue #184947.