pyocd_debug_sample_variable
Sample a global variable periodically during target execution. Reads memory at specified address at set intervals, returns timestamped values and statistics with progress updates.
Instructions
Periodically sample a memory location (global variable). Reads a variable every N seconds for M samples while target is running. Returns all samples with timestamps and statistics. Sends progress notifications to prevent AI client timeouts during long sampling sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Variable size: 1, 2, or 4 bytes | |
| count | No | Number of samples (default 200) | |
| address | Yes | Memory address of the variable (integer or hex string) | |
| interval | No | Seconds between samples (default 0.5) | |
| halt_on_read | No | Halt target for each read (safer but slower) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |