Measure CPU use
measure_performanceMeasures real playback performance of a Lathe project by timing audio blocks, reporting mean, 99th-percentile and peak load, deadline misses, dropouts, and per-track CPU costs.
Instructions
Plays part of the project for real and times every audio block, the way a CPU meter does: mean, 99th-percentile and peak load (share of each block's deadline; over 100% is a dropout), blocks that missed the deadline, dropouts the interface reported, each track's own cost per block (heaviest first, with its plug-ins), and the conditions (computer, CPU and cores, interface, buffer size). Bars default to the loop if it's on, else the first four. Takes about seconds plus a short warm-up; Lathe is stopped first and the playhead goes back afterwards.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "measure_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_bar | No | Bar to stop at | |
| seconds | No | How long to measure, 2 to 20 (default 8). Short bars are played again until it's reached | |
| from_bar | No | First bar to play (1-based) |