cdproto: github.com/chromedp/cdproto/systeminfo Index | Files

package systeminfo

import "github.com/chromedp/cdproto/systeminfo"

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

Package Files

easyjson.go systeminfo.go types.go

Constants

const (
    CommandGetInfo        = "SystemInfo.getInfo"
    CommandGetProcessInfo = "SystemInfo.getProcessInfo"
)

Command names.

type GPUDevice Uses

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).

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-GPUDevice

func (GPUDevice) MarshalEasyJSON Uses

func (v GPUDevice) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GPUDevice) MarshalJSON Uses

func (v GPUDevice) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GPUDevice) UnmarshalEasyJSON Uses

func (v *GPUDevice) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GPUDevice) UnmarshalJSON Uses

func (v *GPUDevice) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GPUInfo Uses

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

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-GPUInfo

func (GPUInfo) MarshalEasyJSON Uses

func (v GPUInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GPUInfo) MarshalJSON Uses

func (v GPUInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GPUInfo) UnmarshalEasyJSON Uses

func (v *GPUInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GPUInfo) UnmarshalJSON Uses

func (v *GPUInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetInfoParams Uses

type GetInfoParams struct{}

GetInfoParams returns information about the system.

func GetInfo Uses

func GetInfo() *GetInfoParams

GetInfo returns information about the system.

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#method-getInfo

func (*GetInfoParams) Do Uses

func (p *GetInfoParams) Do(ctx context.Context) (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 Uses

func (v GetInfoParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInfoParams) MarshalJSON Uses

func (v GetInfoParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetInfoParams) UnmarshalEasyJSON Uses

func (v *GetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInfoParams) UnmarshalJSON Uses

func (v *GetInfoParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetInfoReturns Uses

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 Uses

func (v GetInfoReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetInfoReturns) MarshalJSON Uses

func (v GetInfoReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetInfoReturns) UnmarshalEasyJSON Uses

func (v *GetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetInfoReturns) UnmarshalJSON Uses

func (v *GetInfoReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetProcessInfoParams Uses

type GetProcessInfoParams struct{}

GetProcessInfoParams returns information about all running processes.

func GetProcessInfo Uses

func GetProcessInfo() *GetProcessInfoParams

GetProcessInfo returns information about all running processes.

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#method-getProcessInfo

func (*GetProcessInfoParams) Do Uses

func (p *GetProcessInfoParams) Do(ctx context.Context) (processInfo []*ProcessInfo, err error)

Do executes SystemInfo.getProcessInfo against the provided context.

returns:

processInfo - An array of process info blocks.

func (GetProcessInfoParams) MarshalEasyJSON Uses

func (v GetProcessInfoParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetProcessInfoParams) MarshalJSON Uses

func (v GetProcessInfoParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetProcessInfoParams) UnmarshalEasyJSON Uses

func (v *GetProcessInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetProcessInfoParams) UnmarshalJSON Uses

func (v *GetProcessInfoParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetProcessInfoReturns Uses

type GetProcessInfoReturns struct {
    ProcessInfo []*ProcessInfo `json:"processInfo,omitempty"` // An array of process info blocks.
}

GetProcessInfoReturns return values.

func (GetProcessInfoReturns) MarshalEasyJSON Uses

func (v GetProcessInfoReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetProcessInfoReturns) MarshalJSON Uses

func (v GetProcessInfoReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetProcessInfoReturns) UnmarshalEasyJSON Uses

func (v *GetProcessInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetProcessInfoReturns) UnmarshalJSON Uses

func (v *GetProcessInfoReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ImageDecodeAcceleratorCapability Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-ImageDecodeAcceleratorCapability

func (ImageDecodeAcceleratorCapability) MarshalEasyJSON Uses

func (v ImageDecodeAcceleratorCapability) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ImageDecodeAcceleratorCapability) MarshalJSON Uses

func (v ImageDecodeAcceleratorCapability) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ImageDecodeAcceleratorCapability) UnmarshalEasyJSON Uses

func (v *ImageDecodeAcceleratorCapability) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ImageDecodeAcceleratorCapability) UnmarshalJSON Uses

func (v *ImageDecodeAcceleratorCapability) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ImageType Uses

type ImageType string

ImageType image format of a given image.

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-ImageType

const (
    ImageTypeJpeg    ImageType = "jpeg"
    ImageTypeWebp    ImageType = "webp"
    ImageTypeUnknown ImageType = "unknown"
)

ImageType values.

func (ImageType) MarshalEasyJSON Uses

func (t ImageType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ImageType) MarshalJSON Uses

func (t ImageType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ImageType) String Uses

func (t ImageType) String() string

String returns the ImageType as string value.

func (*ImageType) UnmarshalEasyJSON Uses

func (t *ImageType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ImageType) UnmarshalJSON Uses

func (t *ImageType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ProcessInfo Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-ProcessInfo

func (ProcessInfo) MarshalEasyJSON Uses

func (v ProcessInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProcessInfo) MarshalJSON Uses

func (v ProcessInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ProcessInfo) UnmarshalEasyJSON Uses

func (v *ProcessInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProcessInfo) UnmarshalJSON Uses

func (v *ProcessInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Size Uses

type Size struct {
    Width  int64 `json:"width"`  // Width in pixels.
    Height int64 `json:"height"` // Height in pixels.
}

Size describes the width and height dimensions of an entity.

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-Size

func (Size) MarshalEasyJSON Uses

func (v Size) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Size) MarshalJSON Uses

func (v Size) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Size) UnmarshalEasyJSON Uses

func (v *Size) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Size) UnmarshalJSON Uses

func (v *Size) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SubsamplingFormat Uses

type SubsamplingFormat string

SubsamplingFormat yUV subsampling type of the pixels of a given image.

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-SubsamplingFormat

const (
    SubsamplingFormatYuv420 SubsamplingFormat = "yuv420"
    SubsamplingFormatYuv422 SubsamplingFormat = "yuv422"
    SubsamplingFormatYuv444 SubsamplingFormat = "yuv444"
)

SubsamplingFormat values.

func (SubsamplingFormat) MarshalEasyJSON Uses

func (t SubsamplingFormat) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SubsamplingFormat) MarshalJSON Uses

func (t SubsamplingFormat) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (SubsamplingFormat) String Uses

func (t SubsamplingFormat) String() string

String returns the SubsamplingFormat as string value.

func (*SubsamplingFormat) UnmarshalEasyJSON Uses

func (t *SubsamplingFormat) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SubsamplingFormat) UnmarshalJSON Uses

func (t *SubsamplingFormat) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type VideoDecodeAcceleratorCapability Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-VideoDecodeAcceleratorCapability

func (VideoDecodeAcceleratorCapability) MarshalEasyJSON Uses

func (v VideoDecodeAcceleratorCapability) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (VideoDecodeAcceleratorCapability) MarshalJSON Uses

func (v VideoDecodeAcceleratorCapability) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*VideoDecodeAcceleratorCapability) UnmarshalEasyJSON Uses

func (v *VideoDecodeAcceleratorCapability) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*VideoDecodeAcceleratorCapability) UnmarshalJSON Uses

func (v *VideoDecodeAcceleratorCapability) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type VideoEncodeAcceleratorCapability Uses

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   int64  `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 int64  `json:"maxFramerateDenominator"`
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/SystemInfo#type-VideoEncodeAcceleratorCapability

func (VideoEncodeAcceleratorCapability) MarshalEasyJSON Uses

func (v VideoEncodeAcceleratorCapability) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (VideoEncodeAcceleratorCapability) MarshalJSON Uses

func (v VideoEncodeAcceleratorCapability) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*VideoEncodeAcceleratorCapability) UnmarshalEasyJSON Uses

func (v *VideoEncodeAcceleratorCapability) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*VideoEncodeAcceleratorCapability) UnmarshalJSON Uses

func (v *VideoEncodeAcceleratorCapability) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package systeminfo imports 7 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.