SystemInfo

class SystemInfo(cdp: CDP) : Domain

The SystemInfo domain defines methods and events for querying low-level system information.

Constructors

Link copied to clipboard
constructor(cdp: CDP)

Types

Link copied to clipboard
@Serializable
data class GetFeatureStateParameter(val featureState: String)
Link copied to clipboard
@Serializable
data class GetFeatureStateReturn(val featureEnabled: Boolean)
Link copied to clipboard
@Serializable
data class GetInfoReturn(val gpu: SystemInfo.GPUInfo, val modelName: String, val modelVersion: String, val commandLine: String)
Link copied to clipboard
@Serializable
data class GetProcessInfoReturn(val processInfo: List<SystemInfo.ProcessInfo>)
Link copied to clipboard
@Serializable
data class GPUDevice(val vendorId: Double, val deviceId: Double, val subSysId: Double? = null, val revision: Double? = null, val vendorString: String, val deviceString: String, val driverVendor: String, val driverVersion: String)

Describes a single graphics processor (GPU).

Link copied to clipboard
@Serializable
data class GPUInfo(val devices: List<SystemInfo.GPUDevice>, val auxAttributes: Map<String, JsonElement>? = null, val featureStatus: Map<String, JsonElement>? = null, val driverBugWorkarounds: List<String>, val videoDecoding: List<SystemInfo.VideoDecodeAcceleratorCapability>, val videoEncoding: List<SystemInfo.VideoEncodeAcceleratorCapability>, val imageDecoding: List<SystemInfo.ImageDecodeAcceleratorCapability>)

Provides information about the GPU(s) on the system.

Link copied to clipboard
@Serializable
data class ImageDecodeAcceleratorCapability(val imageType: SystemInfo.ImageType, val maxDimensions: SystemInfo.Size, val minDimensions: SystemInfo.Size, val subsamplings: List<SystemInfo.SubsamplingFormat>)

Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.

Link copied to clipboard
@Serializable
enum ImageType : Enum<SystemInfo.ImageType>

Image format of a given image.

Link copied to clipboard
@Serializable
data class ProcessInfo(val type: String, val id: Int, val cpuTime: Double)

Represents process info.

Link copied to clipboard
@Serializable
data class Size(val width: Int, val height: Int)

Describes the width and height dimensions of an entity.

Link copied to clipboard

YUV subsampling type of the pixels of a given image.

Link copied to clipboard
@Serializable
data class VideoDecodeAcceleratorCapability(val profile: String, val maxResolution: SystemInfo.Size, val minResolution: SystemInfo.Size)

Describes a supported video decoding profile with its associated minimum and maximum resolutions.

Link copied to clipboard
@Serializable
data class VideoEncodeAcceleratorCapability(val profile: String, val maxResolution: SystemInfo.Size, val maxFramerateNumerator: Int, val maxFramerateDenominator: Int)

Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.

Functions

Link copied to clipboard

Returns information about the feature state.

Link copied to clipboard
suspend fun getInfo(mode: CommandMode = CommandMode.DEFAULT): SystemInfo.GetInfoReturn

Returns information about the system.

Link copied to clipboard
suspend fun getProcessInfo(mode: CommandMode = CommandMode.DEFAULT): SystemInfo.GetProcessInfoReturn

Returns information about all running processes.