systeminfo

package
v0.24.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 4 Imported by: 0

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

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the SystemInfo domain with the connection set to conn.

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.
	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 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     string              `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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL