28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

After you run the NetBeans 8.0 Profiler, you will see that a Profiler tab has been added to your Projects, Files,<br />

and Services tabs, at the left of the IDE, as illustrated in Figure 2-17. You examined these other three tabs earlier in<br />

the chapter (see the section “NetBeans 8.0 Is Efficient: Organized Project Management Tools”), so let’s explore the<br />

Profiler tab now.<br />

Figure 2-17. Profile’s Basic Telemetry section, at the left of the IDE, under the Profile tab, shows methods, threads, and<br />

total and used memory<br />

At the top of the Profiler tab is the Controls section, with Stop (Terminate) Profiled Application, Reset Collected<br />

Profiling Results Buffer, Garbage Collection, Modify Profiling Session, and VM Telemetry Overview icons.<br />

Below these is the Status section, showing the type of profiling you have selected (in this case, CPU), the<br />

configuration (Analyze Performance), and the Status (Running).<br />

The Profiling Results section contains icons that open tabs in the code editor section regarding profiling data<br />

results (reports), and the View section does the same thing for virtual memory (VM) telemetry, threads, and thread<br />

lock contention. You will be looking at some of these in the next section, when you profile memory usage (you are<br />

currently profiling CPU usage).<br />

You can save snapshots of various points in time during your code profiling sessions in the Saved Snapshots<br />

section. The Basic Telemetry section shows statistics regarding the profiling session, including number of methods,<br />

filter settings, threads running, and memory usage.<br />

36

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

Saved successfully!

Ooh no, something went wrong!