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 cdp.system_info.GPUDevice(vendor_id, device_id, vendor_string, device_string, driver_vendor, driver_version)

Describes a single graphics processor (GPU).

device_id = None

PCI ID of the GPU device, if available; 0 otherwise.

device_string = None

String description of the GPU device, if the PCI ID is not available.

driver_vendor = None

String description of the GPU driver vendor.

driver_version = None

String description of the GPU driver version.

vendor_id = None

PCI ID of the GPU vendor, if available; 0 otherwise.

vendor_string = None

String description of the GPU vendor, if the PCI ID is not available.

class cdp.system_info.Size(width, height)

Describes the width and height dimensions of an entity.

height = None

Height in pixels.

width = None

Width in pixels.

class cdp.system_info.VideoDecodeAcceleratorCapability(profile, max_resolution, min_resolution)

Describes a supported video decoding profile with its associated minimum and maximum resolutions.

max_resolution = None

Maximum video dimensions in pixels supported for this profile.

min_resolution = None

Minimum video dimensions in pixels supported for this profile.

profile = None

Video codec profile that is supported, e.g. VP9 Profile 2.

class cdp.system_info.VideoEncodeAcceleratorCapability(profile, max_resolution, max_framerate_numerator, max_framerate_denominator)

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

max_framerate_numerator = None

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.

max_resolution = None

Maximum video dimensions in pixels supported for this profile.

profile = None

Video codec profile that is supported, e.g H264 Main.

class cdp.system_info.SubsamplingFormat

YUV subsampling type of the pixels of a given image.

YUV420 = 'yuv420'
YUV422 = 'yuv422'
YUV444 = 'yuv444'
class cdp.system_info.ImageDecodeAcceleratorCapability(image_type, max_dimensions, min_dimensions, subsamplings)

Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.

image_type = None

Image coded, e.g. Jpeg.

max_dimensions = None

Maximum supported dimensions of the image in pixels.

min_dimensions = None

Minimum supported dimensions of the image in pixels.

subsamplings = None

Optional array of supported subsampling formats, e.g. 4:2:0, if known.

class cdp.system_info.GPUInfo(devices, driver_bug_workarounds, video_decoding, video_encoding, image_decoding, aux_attributes=None, feature_status=None)

Provides information about the GPU(s) on the system.

aux_attributes = None

An optional dictionary of additional GPU related attributes.

devices = None

The graphics devices on the system. Element 0 is the primary GPU.

driver_bug_workarounds = None

An optional array of GPU driver bug workarounds.

feature_status = None

An optional dictionary of graphics features and their status.

image_decoding = None

Supported accelerated image decoding capabilities.

video_decoding = None

Supported accelerated video decoding capabilities.

video_encoding = None

Supported accelerated video encoding capabilities.

class cdp.system_info.ProcessInfo(type_, id_, cpu_time)

Represents process info.

cpu_time = None

Specifies cumulative CPU usage in seconds across all threads of the process since the process start.

id_ = None

Specifies process id.

type_ = None

Specifies process type.

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.

cdp.system_info.get_info()

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:
  1. gpu - Information about the GPUs on the system.
  2. 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.
  3. 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.
  4. commandLine - The command line string used to launch the browser. Will be the empty string if not supported.
cdp.system_info.get_process_info()

Returns information about all running processes.

Return type:Generator[Dict[str, Any], Dict[str, Any], List[ProcessInfo]]
Returns:An array of process info blocks.

Events

There are no events in this module.