Best Java Profiling / Testing Tool
Please see the change log for a detailed list of changes.
JProfiler 7.1 introduces the following notable new features:
The probe shows hot spots, telemetries and single events. Instead of looking at convoluted JDBC statements, you can directly see the JPA/Hibernate operation types such as "Query", "Criteria", "Get", "Update", "Remove" or "Collection update" with meaningful descriptions:
The hot spots view shows the back traces if CPU recording is enabled. Many operations such as inserts are deferred by JPA and Hibernate and are only executed when a "flush" occurs at a later time. The stack trace of the flush is arbitrary and does not help you to diagnose problems. Because of this, the JPA/Hibernate probe remembers the stack trace when the entity was acquired (for existing entities) or persisted (for new entities) and shows it under a "Deferred operations" node. Operations that are executed immediately, such as queries, are shown under a "Direct operations" node.
To correlate a JPA/Hibernate operation with the resulting database operations, the associated JDBC statements are shown in a "JDBC calls" node below the hot spot. The JDBC probe has to be recording data for this feature.
The events view gives you a chronological perspective on all JPA/Hibernate operations that were recorded:
You can open each event to see the associated JDBC statements and the stack trace of the operation will be shown below.
As for the JDBC probe, the JPA/Hibernate probe is configured by default to annotate persistence operations into the call tree view:
When tracking control objects, event durations or event counts are split by the various event types and stacked in the graph. Below you see event counts of a selected JDBC connection:
Each probe can track an arbitrary number of selections at the same time. You can switch between your selections with the drop-down list at the top.
When tracking hot spots, the average times are split by time types (running, waiting, blocking, net I/O) and stacked in the graph:
While you can add tracking selections directly in the probe tracker with the add button, it is often more convenient to add them from your selection in the control objects or hot spots views. For example, you can select two elements in the hot spots view and use the "Add to tracker" tool bar button to add a new tracking selection for the combined hot spot times.
The contents of the context menu reflect whether the currently selected class is profiled or not and what packages are currently in the filter settings. In the above example, "org.netbeans." is an inclusive filter and the selected node belongs to the class "org.netbeans.core.startup.Main", so JProfiler suggests to exclude packages below "org.netbeans." at various levels, or to include the entire "org." package.
In addition to modifying filters, you can also add the selected method or its entire classes to the ignored methods tab of the filter settings (see below).
Better support for profiling Groovy and other dynamic languages. Up to now, the call site methods of Groovy were shown in the call tree, even if you added exclusive filters for the groovy packages. As of JProfiler 7.1, the "Ignored methods" tab of the filter settings allows to ignore entire classes, which makes it easy to remove all Groovy call site methods from the call tree.