profile_time
Analyze CPU time from a .jfr file using bottom-up aggregation to identify methods consuming the most CPU and find performance bottlenecks.
Instructions
CPU time (bottleneck) profile from a .jfr file. Uses bottom-up aggregation: each method is counted in every sample where it appears in the stack, including time spent in callees. Returns methods consuming the most CPU time. Use when the goal is to find performance bottlenecks and slow code paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | No | Path to .jfr file. Shortcuts: 'new_profile' (current, default) or 'old_profile' (previous). Or full path e.g. recordings/new_profile.jfr. | new_profile |
| topN | No | Maximum number of top methods by CPU time to return. Default: 10. |