• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[HOWTO] Profiling WO apps with Netbeans
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HOWTO] Profiling WO apps with Netbeans


  • Subject: [HOWTO] Profiling WO apps with Netbeans
  • From: Q <email@hidden>
  • Date: Fri, 1 Jun 2007 12:56:54 +1000

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@hidden

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Xcode runtime WOComponent editing bug
  • Previous by thread: Job Opportunities in Amsterdam
  • Index(es):
    • Date
    • Thread