The method statistics view shows information on the distribution of calls to the same method.
Recording method statistics is a memory intensive operation, so it is split from regular CPU recording. To record method statistics, click Record method statistics in the tool bar or select View->Record Method Statistics from JProfiler's main menu. If you have previously recorded method statistics, the old recorded data will be lost. Bookmarks will be added when recording is started or stopped manually. If CPU recording is not enabled, it will be enabled when you start recording method statistics. Note that CPU recording will not be stopped when you stop recording method statistics. |
The method statistics view shows a table with all methods from
profiled classes that were invoked during method
statistics recording. The following columns are shown in the table:
You can sort the table on all columns. Double-clicking on a table row will show the source code of the selected method. |
You can use this view as a starting point for determining which methods are candidates for exceptional method run recording. Once you have identified methods with a high outlier coefficient, you can right-click them in the table and choose Add As Exceptional Method from the context menu. |
Below the method table, a graph with the distribution of invocation counts versus call times is shown.
The graph is always shown for the currently selected method in the method table.
By default, the graph shows invocation counts on a linear scale. However, in order to identify outliers with a low relative frequency, it is useful to switch to a logarithmic axis. This can be done in the view settings or in the context menu. The graph can be exported to HTML or CSV by right-clicking into the graph area and selecting Export from the context menu. The export action in the tool bar and in the context menu of the method table export the method table without the currently shown graph. |
Please see the help on graphs with a time axis for help on common properties of graph views. The time axis in this case is the call duration axis. |