You can compare two arbitrary snapshots that contain recorded CPU information, obtained with CPU sampling or CPU tracing.
To compare snapshots, do the following:
A new tab with the comparison opens. It contains "Call tree" and "Method list" views displaying the differences in method execution times and invocation counts.
The invocation count columns are shown only if both compared snapshots contain CPU tracing results.
If at least one of the compared snapshots contains CPU sampling results, only time differences will be shown.