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 105545 - Profile target for Free-form project is not customizable
Summary: Profile target for Free-form project is not customizable
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on: 203519
Blocks:
  Show dependency tree
 
Reported: 2007-06-04 11:35 UTC by Alexander Kouznetsov
Modified: 2012-04-02 09:39 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-06-04 11:35:38 UTC
NetBeans IDE Dev (Build 200705311200)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

When Profiler is invoked for freeform project for the first time, user is asked
for ant target. If user selects some, he has no UI to change it afterwards. The
most appropriate place, I believe, is Project's Properties, Build and Run category.

The same problem with profile file ant target.
Comment 1 Jiri Sedlacek 2007-09-27 08:42:31 UTC
You're right that there should be a possibility to change already selected ant targets for profiling. However, I don't
think that this is a typical requirement - if you create and select "profile" target for profiling, why wouldn't you use
it then?

Implementing this change will require UI changes, thus not for 6.0. Moreover, I think that to include this setting to
Project's Properties dialog, general profiling framework needs to be introduced (see Issue 109072).

Based on the problem severity and the fact that profiling freeform projects actually works correctly, I'm changing the
issue type to ENHANCEMENT. If you still need to change the target for profiling, just delete the

 <data xmlns="http://www.netbeans.org/ns/profiler/1" profile-file-target="profile-single" profile-target="profile"
version="0.4"/>

element in nbproject/private/private.xml file and the profiler will ask you to select new target for profiling when
starting new profiling session.
Comment 2 Alexander Kouznetsov 2007-09-27 09:43:14 UTC
Thank you, Jiri, for this workaround. Ken, probably this could be included into docs?
Comment 3 Kenneth Ganfield 2007-09-27 11:07:49 UTC
I think it can/should be included in FAQ.
It could also be demonstrated in a tutorial and some freeform docs
Comment 4 Tomas Hurka 2009-04-08 12:55:36 UTC
Milestone cleanup: future->next
Comment 5 J Bachorik 2012-04-02 09:39:28 UTC
Freeform profile targets are handled in the same way as run/debug targets

http://hg.netbeans.org/profiler-main/rev/cf681524d222