Documentation ¶
Overview ¶
Package systeminfo implements the SystemInfo domain. The SystemInfo domain defines methods and events for querying low-level system information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GPUDevice ¶
type GPUDevice struct { VendorID float64 `json:"vendorId"` // PCI ID of the GPU vendor, if available; 0 otherwise. DeviceID float64 `json:"deviceId"` // PCI ID of the GPU device, if available; 0 otherwise. VendorString string `json:"vendorString"` // String description of the GPU vendor, if the PCI ID is not available. DeviceString string `json:"deviceString"` // String description of the GPU device, if the PCI ID is not available. }
GPUDevice Describes a single graphics processor (GPU).
type GPUInfo ¶
type GPUInfo struct { Devices []GPUDevice `json:"devices"` // The graphics devices on the system. Element 0 is the primary GPU. AuxAttributes json.RawMessage `json:"auxAttributes,omitempty"` // An optional dictionary of additional GPU related attributes. FeatureStatus json.RawMessage `json:"featureStatus,omitempty"` // An optional dictionary of graphics features and their status. DriverBugWorkarounds []string `json:"driverBugWorkarounds"` // An optional array of GPU driver bug workarounds. }
GPUInfo Provides information about the GPU(s) on the system.
type GetInfoReply ¶
type GetInfoReply struct { GPU GPUInfo `json:"gpu"` // Information about the GPUs on the system. ModelName string `json:"modelName"` // A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported. ModelVersion string `json:"modelVersion"` // A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported. CommandLine string `json:"commandLine"` // The command line string used to launch the browser. Will be the empty string if not supported. }
GetInfoReply represents the return values for GetInfo in the SystemInfo domain.
type GetProcessInfoReply ¶ added in v0.21.0
type GetProcessInfoReply struct {
ProcessInfo []ProcessInfo `json:"processInfo"` // An array of process info blocks.
}
GetProcessInfoReply represents the return values for GetProcessInfo in the SystemInfo domain.
type ProcessInfo ¶ added in v0.21.0
type ProcessInfo struct { Type string `json:"type"` // Specifies process type. ID int `json:"id"` // Specifies process id. CPUTime float64 `json:"cpuTime"` // Specifies cumulative CPU usage in seconds across all threads of the process since the process start. }
ProcessInfo Represents process info.
Click to show internal directories.
Click to hide internal directories.