-
Book Overview & Buying
-
Table Of Contents
Java EE 5 Development with NetBeans 6
All we need to do in order to profile our application is right-click on it in the Projects window and select Profile.
Before we can profile an application, we need to calibrate the NetBeans profiler by going to Profile | Advanced Commands | Run Profiler Calibration.
The first time we attempt to profile our application, the following dialog will pop-up:

After clicking OK, NetBeans will make some changes to the project's build script to allow profiling our application, then the following dialog will pop-up:

As we can see, there are several aspects of our application we can profile, such as memory allocation and CPU usage. One of the most useful features of the NetBeans profiler is the ability to report how long each method invocation in our application is taking. This information is provided when we profile CPU usage.
In order to start profiling, we simply click on the Run button. At this point the application server will start in profiling mode, and our application...