Documentation ¶
Overview ¶
Package systeminfo implements the SystemInfo domain. The SystemInfo domain defines methods and events for querying low-level system information.
Index ¶
- func NewClient(conn *rpcc.Conn) *domainClient
- type GPUDevice
- type GPUInfo
- type GetFeatureStateArgs
- type GetFeatureStateReply
- type GetInfoReply
- type GetProcessInfoReply
- type ImageDecodeAcceleratorCapability
- type ImageType
- type ProcessInfo
- type Size
- type SubsamplingFormat
- type VideoDecodeAcceleratorCapability
- type VideoEncodeAcceleratorCapability
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. SubSysID *float64 `json:"subSysId,omitempty"` // Sub sys ID of the GPU, only available on Windows. Revision *float64 `json:"revision,omitempty"` // Revision of the GPU, only available on Windows. 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. DriverVendor string `json:"driverVendor"` // String description of the GPU driver vendor. DriverVersion string `json:"driverVersion"` // String description of the GPU driver version. }
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. VideoDecoding []VideoDecodeAcceleratorCapability `json:"videoDecoding"` // Supported accelerated video decoding capabilities. VideoEncoding []VideoEncodeAcceleratorCapability `json:"videoEncoding"` // Supported accelerated video encoding capabilities. ImageDecoding []ImageDecodeAcceleratorCapability `json:"imageDecoding"` // Supported accelerated image decoding capabilities. }
GPUInfo Provides information about the GPU(s) on the system.
type GetFeatureStateArgs ¶ added in v0.35.0
type GetFeatureStateArgs struct {
FeatureState string `json:"featureState"` // No description.
}
GetFeatureStateArgs represents the arguments for GetFeatureState in the SystemInfo domain.
func NewGetFeatureStateArgs ¶ added in v0.35.0
func NewGetFeatureStateArgs(featureState string) *GetFeatureStateArgs
NewGetFeatureStateArgs initializes GetFeatureStateArgs with the required arguments.
type GetFeatureStateReply ¶ added in v0.35.0
type GetFeatureStateReply struct {
FeatureEnabled bool `json:"featureEnabled"` // No description.
}
GetFeatureStateReply represents the return values for GetFeatureState in the SystemInfo domain.
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 ImageDecodeAcceleratorCapability ¶ added in v0.23.4
type ImageDecodeAcceleratorCapability struct { ImageType ImageType `json:"imageType"` // Image coded, e.g. Jpeg. MaxDimensions Size `json:"maxDimensions"` // Maximum supported dimensions of the image in pixels. MinDimensions Size `json:"minDimensions"` // Minimum supported dimensions of the image in pixels. Subsamplings []SubsamplingFormat `json:"subsamplings"` // Optional array of supported subsampling formats, e.g. 4:2:0, if known. }
ImageDecodeAcceleratorCapability Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.
type ImageType ¶ added in v0.25.0
type ImageType string
ImageType Image format of a given image.
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.
type Size ¶ added in v0.23.4
type Size struct { Width int `json:"width"` // Width in pixels. Height int `json:"height"` // Height in pixels. }
Size Describes the width and height dimensions of an entity.
type SubsamplingFormat ¶ added in v0.23.4
type SubsamplingFormat string
SubsamplingFormat YUV subsampling type of the pixels of a given image.
const ( SubsamplingFormatNotSet SubsamplingFormat = "" SubsamplingFormatYuv420 SubsamplingFormat = "yuv420" SubsamplingFormatYuv422 SubsamplingFormat = "yuv422" SubsamplingFormatYuv444 SubsamplingFormat = "yuv444" )
SubsamplingFormat as enums.
func (SubsamplingFormat) String ¶ added in v0.23.4
func (e SubsamplingFormat) String() string
func (SubsamplingFormat) Valid ¶ added in v0.23.4
func (e SubsamplingFormat) Valid() bool
type VideoDecodeAcceleratorCapability ¶ added in v0.23.4
type VideoDecodeAcceleratorCapability struct { Profile string `json:"profile"` // Video codec profile that is supported, e.g. VP9 Profile 2. MaxResolution Size `json:"maxResolution"` // Maximum video dimensions in pixels supported for this |profile|. MinResolution Size `json:"minResolution"` // Minimum video dimensions in pixels supported for this |profile|. }
VideoDecodeAcceleratorCapability Describes a supported video decoding profile with its associated minimum and maximum resolutions.
type VideoEncodeAcceleratorCapability ¶ added in v0.23.4
type VideoEncodeAcceleratorCapability struct { Profile string `json:"profile"` // Video codec profile that is supported, e.g H264 Main. MaxResolution Size `json:"maxResolution"` // Maximum video dimensions in pixels supported for this |profile|. MaxFramerateNumerator int `json:"maxFramerateNumerator"` // Maximum encoding framerate in frames per second supported for this |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, 24000/1001 fps, etc. MaxFramerateDenominator int `json:"maxFramerateDenominator"` // No description. }
VideoEncodeAcceleratorCapability Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.