SystemInfo#
The SystemInfo domain defines methods and events for querying low-level system information.
This CDP domain is experimental.
Types#
Generally, you do not need to instantiate CDP types yourself. Instead, the API creates objects for you as return values from commands, and then you can use those objects as arguments to other commands.
- class GPUDevice(vendor_id, device_id, vendor_string, device_string, driver_vendor, driver_version, sub_sys_id=None, revision=None)[source]#
Describes a single graphics processor (GPU).
- class VideoDecodeAcceleratorCapability(profile, max_resolution, min_resolution)[source]#
Describes a supported video decoding profile with its associated minimum and maximum resolutions.
- class VideoEncodeAcceleratorCapability(profile, max_resolution, max_framerate_numerator, max_framerate_denominator)[source]#
Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.
- class SubsamplingFormat(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
YUV subsampling type of the pixels of a given image.
- YUV420 = 'yuv420'#
- YUV422 = 'yuv422'#
- YUV444 = 'yuv444'#
- class ImageType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Image format of a given image.
- JPEG = 'jpeg'#
- WEBP = 'webp'#
- UNKNOWN = 'unknown'#
- class ImageDecodeAcceleratorCapability(image_type, max_dimensions, min_dimensions, subsamplings)[source]#
Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.
-
subsamplings:
List
[SubsamplingFormat
]# 0, if known.
- Type:
Optional array of supported subsampling formats, e.g. 4
- Type:
2
-
subsamplings:
- class GPUInfo(devices, driver_bug_workarounds, video_decoding, video_encoding, image_decoding, aux_attributes=None, feature_status=None)[source]#
Provides information about the GPU(s) on the system.
-
video_decoding:
List
[VideoDecodeAcceleratorCapability
]# Supported accelerated video decoding capabilities.
-
video_encoding:
List
[VideoEncodeAcceleratorCapability
]# Supported accelerated video encoding capabilities.
-
image_decoding:
List
[ImageDecodeAcceleratorCapability
]# Supported accelerated image decoding capabilities.
-
video_decoding:
Commands#
Each command is a generator function. The return
type Generator[x, y, z]
indicates that the generator
yields arguments of type x
, it must be resumed with
an argument of type y
, and it returns type z
. In
this library, types x
and y
are the same for all
commands, and z
is the return type you should pay attention
to. For more information, see
Getting Started: Commands.
- get_info()[source]#
Returns information about the system.
- Return type:
Generator
[Dict
[str
,Any
],Dict
[str
,Any
],Tuple
[GPUInfo
,str
,str
,str
]]- Returns:
A tuple with the following items:
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.
Events#
There are no events in this module.