stats.get
Gives performance numbers: frame rate, render time, dropped frames by cause, CPU, memory and free disk space.
JSON-RPC 2.0project.read
Dropped frames are counted by cause:
- lagged_frames: the renderer was late.
- output_skipped_frames: frames of the primary canvas an encoder was too slow for.
- output_dropped_network: frames the connections dropped, summed over every destination.
- record_dropped_frames and record_total_frames: the recording's own.
cpu_percent is worked out between two calls, so the first call answers null.
Parameters
None.
Result
- fpsnumberFrames drawn per second.
- frame_time_msnumberAverage time to draw a frame.
- total_framesnumberFrames drawn.
- lagged_framesnumberFrames the renderer was late for.
- lagged_last_secondnumberLate frames in the last second.
- output_skipped_framesnumberFrames of the primary canvas an encoder was too slow for.
- output_total_framesnumberFrames drawn, to compare the skipped ones with.
- output_dropped_networknumberFrames the connections dropped, over every destination.
- record_dropped_framesnumberFrames the recording dropped.
- record_total_framesnumberFrames the recording got.
- cpu_percentnumber | nullLightair's CPU use since the last call.
- cpu_secondsnumberLightair's CPU time so far.
- memory_mbnumberMemory in use.
- disk_free_mbnumber | nullFree space where recordings are saved.
From an AI agent
The MCP server's get_stats reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "stats.get"}lightair call stats.getconst result = lightair.call("stats.get", {});