analyze_profile
Analyze a py-spy profile to identify the hottest frames, helping pinpoint performance bottlenecks in Python processes.
Instructions
Analyze an existing py-spy profile and return the hottest frames.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | Number of top frames to return (default 10). | |
| profile_path | Yes | Path to a speedscope JSON (.json) or raw (.txt) profile. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |