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 />

Click the Live Results icon in the Profiling Results section, and open a live profiling result tab, shown in<br />

Figure 2-18, at the top, labeled with the CPU time (2:12:09 pm).<br />

Figure 2-18. NetBeans Profiler output, shown in the cpu tab, at the top right, and the Output tab, at the bottom right<br />

As you can see, you are able to open your code hierarchy, including the .main() method, the .start() method,<br />

and the .handle() method, and see a visual representation of their percentage of total CPU time used as well as the<br />

actual CPU time used, in milliseconds, which is the time value that is employed in <strong>Java</strong> programming for both <strong>Java</strong> 8<br />

and <strong>Java</strong>FX and even for HTML5, <strong>Java</strong>Script, and Android application development.<br />

Finally, as you can see in the Output pane at the bottom of the figure, there is also text output, just like when this<br />

Output pane is used for displaying the compiled, run, and executed code, showing what the Profiler is doing as well.<br />

After the “Hello World!” that you generated by clicking your application’s Say “Hello World” button, you can see the<br />

Profiler agent Initializing, caching classes, and so on. There are a ton of tabs and options in this area of NetBeans, and<br />

I cannot cover every single one of them in this basic NetBeans overview chapter, so play around with what you see on<br />

your screen!<br />

www.it-ebooks.info<br />

37

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

Saved successfully!

Ooh no, something went wrong!