28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2 ■ Setting Up Your <strong>Java</strong> 8 IDE: An Introduction to NetBeans 8.0<br />

Profiling Your <strong>Java</strong> 8 Game Application Memory Usage<br />

Let’s take a look at Memory Profiling next. Click the Profile Project icon, and open the Analyze Memory dialog,<br />

presented in Figure 2-19. As you can see, if you select Record stack trace for allocations, the Profiler uses more<br />

system overhead.<br />

Figure 2-19. Select the Memory section of the Profile InvinciBagel dialog and select Record stack trace for allocation<br />

Once the memory profiler is running, use a Window ➤ Profiling ➤ VM Telemetry Overview menu sequence,<br />

shown in Figure 2-20 (top), to open the VM Telemetry Overview tab (bottom). This tab shows memory allocated<br />

and memory used. You can hover the mouse over the visual bar to get an exact reading at any point in time.<br />

In programming terms, hovering a mouse over something will be accessed in your code using “mouse-over.”<br />

38<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!