If you are unfamiliar with big O notation, see this introduction to algorithmic complexity and this list of complexities for common algorithms.
configure button
is shown directly in the view, and it can always be found in the tool bar or in the View menu.
The following ways for selecting methods are available:
The context menu for the list of methods offers the option to edit existing entries.
In the script editor, you can then enter a script whose return value of type long is used as the complexity for the current method call. For example, if one of the method parameters of type java.util.Collection is named inputs, the script could be inputs.size().
You can temporarily disable a method configuration by deselecting the check box in front of the script configuration. In that case, no complexity recording will be performed for the corresponding method.
After recording has been stopped, a graph with the results is displayed plotting the complexities on the x-axis against the execution times on the y-axis. To reduce memory requirements, JProfiler can combine different complexities and execution times into common buckets. The drop-down at the top allows you to switch between the different configured methods.
The graph is a bubble chart, where the size of each data point is proportional to the amount of measurements in it. If all measurements are distinct, you will see a regular scatter chart. In the other extreme, if all method invocations have the same complexity and execution time, you will see a single large circle.
Note that R2 can be negative, because it is just a notation and not really the square of anything. Negative values indicate a fit that is worse than a fit with a constant line. The constant line fit always has an R2 value of 0 and a perfect fit has a value of 1.
You can export the parameters of the currently displayed fit by choosing the "Properties" option in the export dialog. For automated analysis in a quality assurance environment, the command line export supports the properties format as well.