Java Reference
In-Depth Information
The Live Profiling Results window displays every method invocation, with the
percentage of total time in the application that the method is using, the number
of milliseconds the method takes to complete. It also shows how many times each
method has been invoked.
As we can see, the NetBeans profiler can be very helpful in pinpointing areas of our
application that are having performance problems, allowing us to easily identify
these areas so that we can better focus our performance optimization efforts.
At this point we can take a snapshot so that we can compare performance of the
application after we modify it in the future. We can take a snapshot by simply
clicking on the icon labeled Take Snapshot in the Proiler window.
Taking a snapshot will result in a new tab being opened, displaying exactly the same
information we saw in the Live Profiling Results window. We can save the snapshot
by simply going to File | Save , or by using the usual keyboard shortcut, just like we
save any other file.
At this point we will see our snapshot listed in the Saved Snapshots section of the
Proiler window.
Although knowing how long each method in our application is taking to complete is
very valuable information, it is by no means the only information we can obtain from
the NetBeans profiler. We can see how much memory our application is using by
simply opening the VM Telemetry Overview window by clicking on the
icon on
the Profiling control panel.
 
Search WWH ::




Custom Search