Documentation ¶
Overview ¶
Package systeminfo provides the Chrome DevTools Protocol commands, types, and events for the SystemInfo domain.
The SystemInfo domain defines methods and events for querying low-level system information.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type GPUDevice
- type GPUInfo
- type GetInfoParams
- func (p *GetInfoParams) Do(ctxt context.Context, h cdp.Executor) (gpu *GPUInfo, modelName string, modelVersion string, commandLine string, ...)
- func (v GetInfoParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetInfoParams) MarshalJSON() ([]byte, error)
- func (v *GetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetInfoParams) UnmarshalJSON(data []byte) error
- type GetInfoReturns
- type GetProcessInfoParams
- func (p *GetProcessInfoParams) Do(ctxt context.Context, h cdp.Executor) (processInfo []*ProcessInfo, err error)
- func (v GetProcessInfoParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetProcessInfoParams) MarshalJSON() ([]byte, error)
- func (v *GetProcessInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetProcessInfoParams) UnmarshalJSON(data []byte) error
- type GetProcessInfoReturns
- type ProcessInfo
Constants ¶
const ( CommandGetInfo = "SystemInfo.getInfo" CommandGetProcessInfo = "SystemInfo.getProcessInfo" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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).
func (GPUDevice) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (GPUDevice) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*GPUDevice) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GPUDevice) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type GPUInfo ¶
type GPUInfo struct { Devices []*GPUDevice `json:"devices"` // The graphics devices on the system. Element 0 is the primary GPU. AuxAttributes easyjson.RawMessage `json:"auxAttributes,omitempty"` FeatureStatus easyjson.RawMessage `json:"featureStatus,omitempty"` DriverBugWorkarounds []string `json:"driverBugWorkarounds"` // An optional array of GPU driver bug workarounds. }
GPUInfo provides information about the GPU(s) on the system.
func (GPUInfo) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (GPUInfo) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*GPUInfo) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GPUInfo) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type GetInfoParams ¶
type GetInfoParams struct{}
GetInfoParams returns information about the system.
func (*GetInfoParams) Do ¶
func (p *GetInfoParams) Do(ctxt context.Context, h cdp.Executor) (gpu *GPUInfo, modelName string, modelVersion string, commandLine string, err error)
Do executes SystemInfo.getInfo against the provided context.
returns:
gpu - Information about the GPUs on the system. 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 - 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 - The command line string used to launch the browser. Will be the empty string if not supported.
func (GetInfoParams) MarshalEasyJSON ¶
func (v GetInfoParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetInfoParams) MarshalJSON ¶
func (v GetInfoParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetInfoParams) UnmarshalEasyJSON ¶
func (v *GetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetInfoParams) UnmarshalJSON ¶
func (v *GetInfoParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetInfoReturns ¶
type GetInfoReturns struct { Gpu *GPUInfo `json:"gpu,omitempty"` // Information about the GPUs on the system. ModelName string `json:"modelName,omitempty"` // 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,omitempty"` // 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,omitempty"` // The command line string used to launch the browser. Will be the empty string if not supported. }
GetInfoReturns return values.
func (GetInfoReturns) MarshalEasyJSON ¶
func (v GetInfoReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetInfoReturns) MarshalJSON ¶
func (v GetInfoReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetInfoReturns) UnmarshalEasyJSON ¶
func (v *GetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetInfoReturns) UnmarshalJSON ¶
func (v *GetInfoReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetProcessInfoParams ¶
type GetProcessInfoParams struct{}
GetProcessInfoParams returns information about all running processes.
func GetProcessInfo ¶
func GetProcessInfo() *GetProcessInfoParams
GetProcessInfo returns information about all running processes.
func (*GetProcessInfoParams) Do ¶
func (p *GetProcessInfoParams) Do(ctxt context.Context, h cdp.Executor) (processInfo []*ProcessInfo, err error)
Do executes SystemInfo.getProcessInfo against the provided context.
returns:
processInfo - An array of process info blocks.
func (GetProcessInfoParams) MarshalEasyJSON ¶
func (v GetProcessInfoParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetProcessInfoParams) MarshalJSON ¶
func (v GetProcessInfoParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetProcessInfoParams) UnmarshalEasyJSON ¶
func (v *GetProcessInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetProcessInfoParams) UnmarshalJSON ¶
func (v *GetProcessInfoParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetProcessInfoReturns ¶
type GetProcessInfoReturns struct {
ProcessInfo []*ProcessInfo `json:"processInfo,omitempty"` // An array of process info blocks.
}
GetProcessInfoReturns return values.
func (GetProcessInfoReturns) MarshalEasyJSON ¶
func (v GetProcessInfoReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetProcessInfoReturns) MarshalJSON ¶
func (v GetProcessInfoReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetProcessInfoReturns) UnmarshalEasyJSON ¶
func (v *GetProcessInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetProcessInfoReturns) UnmarshalJSON ¶
func (v *GetProcessInfoReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ProcessInfo ¶
type ProcessInfo struct { Type string `json:"type"` // Specifies process type. ID int64 `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.
func (ProcessInfo) MarshalEasyJSON ¶
func (v ProcessInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ProcessInfo) MarshalJSON ¶
func (v ProcessInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ProcessInfo) UnmarshalEasyJSON ¶
func (v *ProcessInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ProcessInfo) UnmarshalJSON ¶
func (v *ProcessInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface