CPU profiling provides a close look into the interaction of the JVM with the CPU. Understanding how your CPU cycles were consumed can help you identify performance bottlenecks. With AppPerfect Java Profiler, you can view in detail the methods and their relative time and resource consumption with reference to the CPU.
The CPU views can be accessed from the Navigational Tree by clicking on the CPU Profiling node.
The types of CPU Reports generated by the AppPerfect Java Profiler are explained below.
This option under CPU profiling provides you with complete method details including Method Name, Class Name, Signature, Invocation Count, Self Time and Total Time of methods that have been executed.
So in a glance, you can see the number of times a method was invoked and the time it took to execute itself as well as the time it took to execute overall, including execution of any procedures, or method calls . You can also see the method's signature.
You can sort the data based on any of the column headings so that data most relevant to your analysis is shown. To filter the data in the classes table in the Filter on drop-down menu select any of the columns for filter is to be applied, and also select the Not equal to or Equal to option from the drop-down menu. Once you have applied the filter and entered the details click Filter. To clear the filtered data click Clear. The data can also be sorted using the Thread State, and Thread drop down menu.
You can view Hotspot details by setting the threshold time. The threshold settings are specified in the Hotspot Threshold field. The default value is 0 ms. You can also view Incoming and Outgoing Invocations relevant to the selected method.
In the Hotspot Tree it is possible to sort and view the threads on the basis of the Thread State and Thread drop-down menus. The various states are: Running, Waiting, Blocked and Stopped. A Refresh Button is also provided which can be used to refresh the current view.
The Invocation Tree view presents the entire method hierarchy followed in your application starting from the running threads. Complete details of the total time taken by each method as well as the time as a percentage of the overall time taken can be seen in this view. This information can be useful in many ways, especially to identify the proportion of time utilized by each method in running threads.
In the Invocation Tree it is also possible to sort and view the threads on the basis of the Thread State and Thread drop-down menus. The various states are: Running, Waiting, Blocked and Stopped. A Refresh Button is also provided which can be used to refresh the current view.