Skip to main content

RecorderStats

Electron APIs / recorder / RecorderStats

Provides real-time performance statistics of the Recorder. Useful for monitoring system load and diagnosing performance issues during recording.

Example

const stats: RecorderStats = recorder.getStats();
console.log(`CPU Usage: ${stats.cpuUsage}%`);

Properties

PropertyTypeDescription
activeFpsnumberFrames per second currently being rendered by the Recorder.
availableDiskSpacenumberAvailable disk space (in megabytes) on the storage device used for recording.
averageFrameRenderTimenumberAverage time (in milliseconds) taken to render a single frame.
cpuUsagenumberCurrent CPU usage percentage by the recording process.
memoryUsagenumberAmount of memory (in megabytes) currently used by the Recorder.
outputSkippedFramesnumberNumber of frames skipped in the output thread due to performance constraints.
outputTotalFramesnumberTotal number of frames processed and output by the output thread.
renderSkippedFramesnumberNumber of frames skipped in the rendering thread due to performance constraints.
renderTotalFramesnumberTotal number of frames rendered by the rendering thread.