track_variable
Samples a firmware variable at set intervals in the background, then returns collected data to analyze trends or leaks in STM32 debug sessions.
Instructions
Background variable tracking: action='start' (needs variable + interval_ms), 'stop', or 'get' (returns the sampled data for trend/leak analysis).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do. | |
| session | No | Optional debug-session name. Omit for the default target. | |
| variable | No | For 'start': the variable/expression to sample. | |
| interval_ms | No | For 'start': polling interval in ms. |