system_info
GPUDevice
dataclass
Describes a single graphics processor (GPU).
Source code in zendriver/cdp/system_info.py
device_id: float
instance-attribute
device_string: str
instance-attribute
driver_vendor: str
instance-attribute
driver_version: str
instance-attribute
revision: typing.Optional[float] = None
class-attribute
instance-attribute
sub_sys_id: typing.Optional[float] = None
class-attribute
instance-attribute
vendor_id: float
instance-attribute
vendor_string: str
instance-attribute
__init__(vendor_id, device_id, vendor_string, device_string, driver_vendor, driver_version, sub_sys_id=None, revision=None)
from_json(json)
classmethod
Source code in zendriver/cdp/system_info.py
to_json()
Source code in zendriver/cdp/system_info.py
GPUInfo
dataclass
Provides information about the GPU(s) on the system.
Source code in zendriver/cdp/system_info.py
aux_attributes: typing.Optional[dict] = None
class-attribute
instance-attribute
devices: typing.List[GPUDevice]
instance-attribute
driver_bug_workarounds: typing.List[str]
instance-attribute
feature_status: typing.Optional[dict] = None
class-attribute
instance-attribute
image_decoding: typing.List[ImageDecodeAcceleratorCapability]
instance-attribute
video_decoding: typing.List[VideoDecodeAcceleratorCapability]
instance-attribute
video_encoding: typing.List[VideoEncodeAcceleratorCapability]
instance-attribute
__init__(devices, driver_bug_workarounds, video_decoding, video_encoding, image_decoding, aux_attributes=None, feature_status=None)
from_json(json)
classmethod
Source code in zendriver/cdp/system_info.py
to_json()
Source code in zendriver/cdp/system_info.py
ImageDecodeAcceleratorCapability
dataclass
Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.
Source code in zendriver/cdp/system_info.py
image_type: ImageType
instance-attribute
max_dimensions: Size
instance-attribute
min_dimensions: Size
instance-attribute
subsamplings: typing.List[SubsamplingFormat]
instance-attribute
__init__(image_type, max_dimensions, min_dimensions, subsamplings)
from_json(json)
classmethod
Source code in zendriver/cdp/system_info.py
to_json()
Source code in zendriver/cdp/system_info.py
ImageType
Bases: Enum
Image format of a given image.
Source code in zendriver/cdp/system_info.py
JPEG = 'jpeg'
class-attribute
instance-attribute
UNKNOWN = 'unknown'
class-attribute
instance-attribute
WEBP = 'webp'
class-attribute
instance-attribute
from_json(json)
classmethod
ProcessInfo
dataclass
Represents process info.
Source code in zendriver/cdp/system_info.py
cpu_time: float
instance-attribute
id_: int
instance-attribute
type_: str
instance-attribute
__init__(type_, id_, cpu_time)
from_json(json)
classmethod
Size
dataclass
Describes the width and height dimensions of an entity.
Source code in zendriver/cdp/system_info.py
height: int
instance-attribute
width: int
instance-attribute
__init__(width, height)
from_json(json)
classmethod
SubsamplingFormat
Bases: Enum
YUV subsampling type of the pixels of a given image.
Source code in zendriver/cdp/system_info.py
YUV420 = 'yuv420'
class-attribute
instance-attribute
YUV422 = 'yuv422'
class-attribute
instance-attribute
YUV444 = 'yuv444'
class-attribute
instance-attribute
from_json(json)
classmethod
VideoDecodeAcceleratorCapability
dataclass
Describes a supported video decoding profile with its associated minimum and maximum resolutions.
Source code in zendriver/cdp/system_info.py
max_resolution: Size
instance-attribute
min_resolution: Size
instance-attribute
profile: str
instance-attribute
__init__(profile, max_resolution, min_resolution)
from_json(json)
classmethod
Source code in zendriver/cdp/system_info.py
VideoEncodeAcceleratorCapability
dataclass
Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.
Source code in zendriver/cdp/system_info.py
max_framerate_denominator: int
instance-attribute
max_framerate_numerator: int
instance-attribute
max_resolution: Size
instance-attribute
profile: str
instance-attribute
__init__(profile, max_resolution, max_framerate_numerator, max_framerate_denominator)
from_json(json)
classmethod
Source code in zendriver/cdp/system_info.py
to_json()
Source code in zendriver/cdp/system_info.py
get_feature_state(feature_state)
Returns information about the feature state.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
feature_state
|
str
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, bool]
|
|
Source code in zendriver/cdp/system_info.py
get_info()
Returns information about the system.
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, Tuple[GPUInfo, str, str, str]]
|
A tuple with the following items: 0. gpu - Information about the GPUs on the system. 1. 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. 2. 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. 3. commandLine - The command line string used to launch the browser. Will be the empty string if not supported. |
Source code in zendriver/cdp/system_info.py
get_process_info()
Returns information about all running processes.
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[ProcessInfo]]
|
An array of process info blocks. |