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 174224

Summary: [java, profiling points] profiling points are ignored on first start of a java project
Product: profiler Reporter: matusdekanek <matusdekanek>
Component: BaseAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker CC: thurka
Priority: P4 Keywords: ERGONOMICS
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot
mesages.log

Description matusdekanek 2009-10-09 13:49:26 UTC
Product Version: NetBeans IDE 6.8 M2 (Build 200910071658)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Linux version 2.6.28-15-generic running on i386; UTF-8; en_US (nb)

-start IDE (it has enabled the ergonomics module)
-create Anagram game sample project
-insert a few profiling points into the project
-close the IDE
-delete the userdir
-start IDE again
-open the previously created Anagram game project
-open the 'profiling points' window - the profiling points of the project are correctly listed
-invoke 'profile main project'
-in the profiler dialog select 'CPU' configuration
-select 'use profiling points' checkbox
-click on 'show active profiling points' link
There are no profiling points listed, although there are listed in the 'profiling points' window. They are ignored
during profiling as well.

With disabled ergonomics everything works fine. Seems that it has something to do with java se activation.
Comment 1 matusdekanek 2009-10-09 13:51:13 UTC
Created attachment 89183 [details]
screenshot
Comment 2 matusdekanek 2009-10-09 13:51:45 UTC
Created attachment 89184 [details]
mesages.log
Comment 3 Jaroslav Tulach 2009-10-27 11:23:45 UTC
ergonomics#29f6e2370333

Please review the code and don't be scared too much by it.
Comment 4 Quality Engineering 2009-10-29 12:08:12 UTC
Integrated into 'main-golden', will be available in build *200910290252* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/29f6e2370333
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #174224: Comparing projects based on their directory.
There is a better method for those who deal with identity of opened projects: OpenProjects.isProjectOpen, but I am not sure how to use it in this class, it seems to keep its own list of "opened projects".