cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Home > Profiling Results

Profiling Results - Memory Usage - Object Allocations

The Object Allocation tab displays the results when you select the Record Object Creation option in the Analyze Memory Usage command or Memory Profiling in the Custom Profile. The Object Allocation tab opens in the Profiling Results tab when you click Get Current Results ( Get Current Results ) in the Profiler window.

The Object Allocation tab displays a list of classes (including array classes), with the total size and number of instances that have been allocated since you issued the instrumentation command. You can bring up a reverse call graph with all call paths leading to object allocations for the given class and locate the source code for objects.

To bring up a reverse call graph and locate the source code for a method

  1. In the Object Allocation tab, double-click on a class, or right-click on a class and choose Show Allocations Stack Traces from the contextual menu

    This brings up the Allocation Paths tab with the reverse call graph. This information can help you determine which call paths contribute most of the allocated objects.

  2. In the Allocation Paths tab, double-click on a method item, or right-click a method item and choose Go to Source... from the contextual menu

    The source code for the method opens up in a new tab in the Source Editor.

Reverse Call Graph

Object Allocation measuring in Profiler

The number of object allocations that Profiler presents is exact, whereas both the total object size and the reverse call graphs are by default obtained statistically. This is one of the many performance improvement measures available in the Profiler. See how it works.

See also

 

Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems