Game Development Reference
In-Depth Information
Profiling Your Java 8 Game Application Memory
Usage
Let's take a look at
Memory
Profiling next. Click the
Profile Project
icon, and open
the
Analyze Memory
dialog, presented in
Figure 2-19
. As you can see, if you select
Record stack trace for allocations
, the Profiler uses more system
overhead
.
Figure 2-19
.
Select the Memory section of the Profile InvinciBagel dialog and select Record stack trace for allocation
Once the
memory profiler
is running, use a
Window Profiling VM Tele-
metry Overview
menu sequence, shown in
Figure 2-20
(top), to open the VM Tele-
metry Overview tab (bottom). This tab shows
memory allocated
and
memory used
.
You can hover the mouse over the visual bar to get an exact reading at any point in
time. In programming terms, hovering a mouse over something will be accessed in
your code using “mouse-over.”