Memory view section

## Memory view section |
| up | next

| The memory view section contains the class monitor view The class monitor view shows the dynamic class-resolved statistics for current heap usage and garbage collected objects. allocation monitor view The allocation monitor view shows the dynamic allocation tree for the current heap usage and garbage collected objects. allocation hot spots view The dynamic allocation hot spots view shows which methods are responsible for creating objects objects of a selected class. memory statistics The memory statistics view shows statically calculated statistics for package resolved memory consumption and allocations.

| Unless "Record allocations on startup" has been selected in the `Startup` section of the profiling settings dialog, data acquisition has to be started manually by clicking on Record allocation data in the tool bar or by selecting Profiler->Record allocation data from JProfiler's main menu. Allocation data acquisition can be stopped by clicking on Stop recording allocation data in the tool bar or by selecting Profiler->Stop recording allocation data from JProfiler's main menu. Restarting data acquisition resets all data in the the class monitor view, the allocation monitor view and the allocation hot spots view When you stop recording allocations, the recorded objects will still be tracked for garbage collection. For example, if all recorded objects are garbage collected, both class monitor and allocation monitor will be empty in their default view mode (live objects only). You can then still display all recorded objects if you switch to one of the other two view modes (garbage collected only or both live and garbage collected). The heap walker will be able to display allocation information only for recorded objects, otherwise the entire heap is displayed in the heap walker.

| The dynamic memory views are integrated with the heap walker. The take heap snapshot with selection action on the toolbar, in the Edit and context menus takes a heap snapshot and creates an object set with the currently selected objects.