By default, JProfiler ignores the call site mechanism of Groovy. If you click on on the
Reset button, the default entries
will be restored.
This problem is not present when the method call recording type is set to Sampling. However, sampling does not provide invocations counts, shows only longer method calls and several view such as the method statistics view and the call tracer do not work when sampling is used.
To alleviate the problem with dynamic instrumentation, JProfiler has a mechanism called
auto-tuning. From time to time, the profiling agent checks for such methods and transmits them
to the JProfiler GUI. In the status bar, an entry such as
3 overhead hot spots
will be shown. You can click on that status bar entry to review the detected overhead hot spots and
choose to accept them into the list of ignored methods. These ignored methods will then not be instrumented.
When a session is terminated, the same dialog is shown.
In case that you do not want to see messages about auto-tuning, you can disable it in the profiling settings. Also, several parameters can be adjusted to broaden or narrow the scope of the methods that are considered as overhead hot spots.
You can also add ignored methods directly on this tab of the filter settings. The following ways for selecting methods are available:
Alternatively, you can choose all methods from the selected class by selecting the "All methods" radio button at the top of the dialog.
Alternatively, you can choose all methods from the selected class by selecting the "All methods" radio button at the top of the dialog.
The context menu for the list of methods offers the option to edit existing entries.
To select all methods from a class, enter * for the method name and the empty string for the signature.