plan_automatic_collection
Create a temporary performance collection plan for a specified process, defining sampling mode, events, call graph, frequency, duration, and output limits without starting collection.
Instructions
Create a short-lived PID-bound collection plan. This does not sample or attach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| mode | No | record | |
| events | No | ||
| call_graph | No | dwarf | |
| frequency_hz | No | ||
| duration_seconds | No | ||
| max_output_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| events | No | ||
| backend | Yes | ||
| plan_id | Yes | ||
| warnings | No | ||
| call_graph | No | ||
| expires_at | Yes | ||
| target_pid | Yes | ||
| target_uid | Yes | ||
| target_type | Yes | ||
| frequency_hz | No | ||
| policy_status | Yes | ||
| schema_version | No | 1.0 | |
| duration_seconds | Yes | ||
| max_output_bytes | Yes | ||
| required_privilege | Yes | ||
| target_start_time_ticks | Yes |