O'Reilly logo

NetBeans IDE 7 Cookbook by Rhawi Dantas

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 Java code

The NetBeans profiling tool gives developers the ability to inspect their developed applications while they are running. With it, it is possible to gather valuable information from the state applications are in at a determined moment.

In this recipe we will use the Profiling tool to check:

  • Consumed CPU time
  • Runtime behavior
  • Memory consumption by components

The project we will use for this recipe is the Document Editor contained within the examples supplied with NetBeans. We will use the Document Editor since sources are provided together with the NetBeans installation, but feel free to apply the concepts in this recipe to your own project.

Getting ready

Since the NetBeans Profiler is already included in the installation package of ...

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