I've just tried your howto with NetBeans 5.5 and it works great, thanks a lot!

Minor comments:
1. VM arguments can be copied from Wizard (last step).
2. After attaching I get a blank dialog (not text or buttons) which goes away after clicking on it. Looks like a UI glitch.

ps. I think you should post this howto to WO wikibook.

On Jun 1, 2007, at 6:56 AM, Q wrote:

If you want to profile your application, and TPTP or JProfiler aren't available to you, you can still use Netbeans.

Here is how:

Download & Install Netbeans + Netbeans Profiler (Netbeans 6 M9 already includes the profiler, but it may have a few ). Start Netbeans and from the menu choose: Profiler > Advanced Commands > Run Profiler Calibration

In your WO development environment of choice:

Add the following to your VM arguments when you start your wo application:
(Note you need to be using JDK 1.5 for this to work)

For Netbeans 5.5 + Profiler
-agentpath:"/Applications/NetBeans.app/Contents/Resources/NetBeans/ profiler1/lib/deployed/jdk15/mac/libprofilerinterface.jnilib"="/ Applications/NetBeans.app/Contents/Resources/NetBeans/profiler1/ lib",5140

For Netbeans 6 M9
-agentpath:"/Applications/NetBeans 6.0 M9.app/Contents/Resources/ NetBeans 6.0 M9/profiler2/lib/deployed/jdk15/mac/ libprofilerinterface.jnilib"="/Applications/NetBeans 6.0 M9.app/ Contents/Resources/NetBeans 6.0 M9/profiler2/lib",5140

(You will need to modify the path to suit your platform)
Start your WO app.. it should sit there waiting for the profiler to attach.
(I use |> (Run) in Eclipse)

In Netbeans:

Select Profile > Attach Profiler...
In the attach wizard set Target as follows:
Target type = Application
Attach method = Local
Attach invocation = Direct
Select the configuration you wish to analyze
Click >>Attach

Your should now be profiling your application in realtime.

Netbeans 6 is a little hit and miss at times, but 5.5 seems to work ok.

--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia
Ph: +61 419 729 806


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/den%40demax.ru

This email sent to [EMAIL PROTECTED]

--
Denis Frolov
Design Maximum MA

Tel: +7 863 2648211
Fax: +7 863 2645229
Web: http://www.designmaximum.com



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to