O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Profiling an application

NetBeans provides the facilities to profile both local and remote applications. Profiling allows you to get a view of the threads, CPU, and memory usage of your application. This can be very useful when tracking down memory leaks or application bottlenecks that are causing applications to run slowly.

In this recipe, we'll add an extra method to the Calculator class we defined earlier in this chapter and see how it fares when profiled.

Getting ready

To complete this recipe, you'll need the sample project we created in the earlier recipe, Creating a JUnit test suite. If you have not completed that recipe, the project is available as part of the download bundle for the book.

How to do it…

To profile our application, perform the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required