1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
U
[±d)+ã@súddlmZddlmZmZddlmZddlZddlZeGdd„dƒƒZ    eGdd    „d    ƒƒZ
eGd
d „d ƒƒZ eGd d „d ƒƒZ Gdd„dej ƒZGdd„dej ƒZeGdd„dƒƒZeGdd„dƒƒZeGdd„dƒƒZddœdd„Zddœdd„ZdS)é)Ú annotationsé)Ú event_classÚ T_JSON_DICT)Ú    dataclassNc@sneZdZUdZded<ded<ded<ded<ded<ded    <d
Zd ed <d
Zd ed <dd„Zedd„ƒZ    d
S)Ú    GPUDevicez6
    Describes a single graphics processor (GPU).
    ÚfloatÚ    vendor_idÚ    device_idÚstrÚ vendor_stringÚ device_stringÚ driver_vendorÚdriver_versionNztyping.Optional[float]Ú
sub_sys_idÚrevisioncCsntƒ}|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|jdk    rV|j|d<|jdk    rj|j|d<|S)    NÚvendorIdÚdeviceIdÚ vendorStringÚ deviceStringÚ driverVendorÚ driverVersionÚsubSysIdr)    Údictr    r
r r rrrr©ÚselfÚjson©rúid:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/devtools/v85/system_info.pyÚto_json*s
 
 
 
 
 
 
 
 
 
zGPUDevice.to_jsonc Csp|t|dƒt|dƒt|dƒt|dƒt|dƒt|dƒd|krRt|dƒndd|krht|dƒndd    S)
Nrrrrrrrr)r    r
r r rrrr)rr ©ÚclsrrrrÚ    from_json8s
 
 
 
 
 
øzGPUDevice.from_json)
Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rrrÚ classmethodr"rrrrr s
  rc@s6eZdZUdZded<ded<dd„Zedd„ƒZd    S)
ÚSizezA
    Describes the width and height dimensions of an entity.
    ÚintÚwidthÚheightcCstƒ}|j|d<|j|d<|S)Nr+r,)rr+r,rrrrrQs
 
z Size.to_jsoncCs|t|dƒt|dƒdS)Nr+r,)r+r,)r*r rrrr"Ws
 
þzSize.from_jsonN©r#r$r%r&r'rr(r"rrrrr)Fs
r)c@s>eZdZUdZded<ded<ded<dd„Zed    d
„ƒZd S) Ú VideoDecodeAcceleratorCapabilityzo
    Describes a supported video decoding profile with its associated minimum and
    maximum resolutions.
    r Úprofiler)Úmax_resolutionÚmin_resolutioncCs0tƒ}|j|d<|j ¡|d<|j ¡|d<|S)Nr/Ú maxResolutionÚ minResolution)rr/r0rr1rrrrrns
 
z(VideoDecodeAcceleratorCapability.to_jsoncCs*|t|dƒt |d¡t |d¡dS)Nr/r2r3)r/r0r1)r r)r"r rrrr"us
 
  ýz*VideoDecodeAcceleratorCapability.from_jsonNr-rrrrr._s
r.c@sFeZdZUdZded<ded<ded<ded<d    d
„Zed d „ƒZd S)Ú VideoEncodeAcceleratorCapabilityzx
    Describes a supported video encoding profile with its associated maximum
    resolution and maximum framerate.
    r r/r)r0r*Úmax_framerate_numeratorÚmax_framerate_denominatorcCs6tƒ}|j|d<|j ¡|d<|j|d<|j|d<|S)Nr/r2ÚmaxFramerateNumeratorÚmaxFramerateDenominator)rr/r0rr5r6rrrrr‘s 
 
 
z(VideoEncodeAcceleratorCapability.to_jsoncCs2|t|dƒt |d¡t|dƒt|dƒdS)Nr/r2r7r8)r/r0r5r6)r r)r"r*r rrrr"™s 
 
 
üz*VideoEncodeAcceleratorCapability.from_jsonNr-rrrrr4~s
r4c@s0eZdZdZdZdZdZdd„Zedd„ƒZ    d    S)
ÚSubsamplingFormatz>
    YUV subsampling type of the pixels of a given image.
    Zyuv420Zyuv422Zyuv444cCs|jS©N©Úvalue©rrrrr«szSubsamplingFormat.to_jsoncCs||ƒSr:rr rrrr"®szSubsamplingFormat.from_jsonN)
r#r$r%r&ZYUV420ZYUV422ZYUV444rr(r"rrrrr9£sr9c@s0eZdZdZdZdZdZdd„Zedd„ƒZ    d    S)
Ú    ImageTypez(
    Image format of a given image.
    ZjpegZwebpÚunknowncCs|jSr:r;r=rrrr»szImageType.to_jsoncCs||ƒSr:rr rrrr"¾szImageType.from_jsonN)
r#r$r%r&ZJPEGZWEBPÚUNKNOWNrr(r"rrrrr>³sr>c@sFeZdZUdZded<ded<ded<ded<d    d
„Zed d „ƒZd S)Ú ImageDecodeAcceleratorCapabilityz
    Describes a supported image decoding profile with its associated minimum and
    maximum resolutions and subsampling.
    r>Ú
image_typer)Úmax_dimensionsÚmin_dimensionsztyping.List[SubsamplingFormat]Ú subsamplingscCsHtƒ}|j ¡|d<|j ¡|d<|j ¡|d<dd„|jDƒ|d<|S)NÚ    imageTypeÚ maxDimensionsÚ minDimensionscSsg|] }| ¡‘qSr©r©Ú.0ÚirrrÚ
<listcomp>Úsz<ImageDecodeAcceleratorCapability.to_json.<locals>.<listcomp>rE)rrBrrCrDrErrrrrÕs z(ImageDecodeAcceleratorCapability.to_jsoncCs<|t |d¡t |d¡t |d¡dd„|dDƒdS)NrFrGrHcSsg|]}t |¡‘qSr)r9r"rJrrrrMãsz>ImageDecodeAcceleratorCapability.from_json.<locals>.<listcomp>rE)rBrCrDrE)r>r"r)r rrrr"Ýs    üz*ImageDecodeAcceleratorCapability.from_jsonNr-rrrrrAÃs
rAc@sfeZdZUdZded<ded<ded<ded    <d
ed <d Zd ed<d Zd ed<dd„Zedd„ƒZ    d S)ÚGPUInfoz>
    Provides information about the GPU(s) on the system.
    ztyping.List[GPUDevice]Údevicesztyping.List[str]Údriver_bug_workaroundsz-typing.List[VideoDecodeAcceleratorCapability]Úvideo_decodingz-typing.List[VideoEncodeAcceleratorCapability]Úvideo_encodingz-typing.List[ImageDecodeAcceleratorCapability]Úimage_decodingNztyping.Optional[dict]Úaux_attributesÚfeature_statuscCs–tƒ}dd„|jDƒ|d<dd„|jDƒ|d<dd„|jDƒ|d<dd„|jDƒ|d    <d
d„|jDƒ|d <|jdk    r~|j|d <|jdk    r’|j|d <|S)NcSsg|] }| ¡‘qSrrIrJrrrrMsz#GPUInfo.to_json.<locals>.<listcomp>rOcSsg|]}|‘qSrrrJrrrrMsÚdriverBugWorkaroundscSsg|] }| ¡‘qSrrIrJrrrrMsÚ videoDecodingcSsg|] }| ¡‘qSrrIrJrrrrMsÚ videoEncodingcSsg|] }| ¡‘qSrrIrJrrrrMsÚ imageDecodingÚ auxAttributesÚ featureStatus)rrOrPrQrRrSrTrUrrrrrs
 
 
 
zGPUInfo.to_jsonc
Cs„|dd„|dDƒdd„|dDƒdd„|dDƒdd„|d    Dƒd
d„|d Dƒd |krft|d ƒndd |kr|t|d ƒnddS)NcSsg|]}t |¡‘qSr)rr"rJrrrrMsz%GPUInfo.from_json.<locals>.<listcomp>rOcSsg|] }t|ƒ‘qSr)r rJrrrrMsrVcSsg|]}t |¡‘qSr)r.r"rJrrrrMsrWcSsg|]}t |¡‘qSr)r4r"rJrrrrMsrXcSsg|]}t |¡‘qSr)rAr"rJrrrrMsrYrZr[)rOrPrQrRrSrTrU)rr rrrr"sùzGPUInfo.from_json)
r#r$r%r&r'rTrUrr(r"rrrrrNçs
   rNc@s>eZdZUdZded<ded<ded<dd    „Zed
d „ƒZd S) Ú ProcessInfoz"
    Represents process info.
    r Útype_r*Úid_rÚcpu_timecCs(tƒ}|j|d<|j|d<|j|d<|S)NÚtypeÚidÚcpuTime)rr]r^r_rrrrr*s
 
 
 
zProcessInfo.to_jsoncCs&|t|dƒt|dƒt|dƒdS)Nr`rarb)r]r^r_)r r*rr rrrr"1s
 
 
 
ýzProcessInfo.from_jsonNr-rrrrr\s
r\zPtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[GPUInfo, str, str, str]])Úreturnccs<ddi}|V}t |d¡t|dƒt|dƒt|dƒfS)a
    Returns information about the system.
 
    :returns: 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.
    ÚmethodzSystemInfo.getInfoZgpuZ    modelNameZ modelVersionZ commandLine)rNr"r ©Zcmd_dictrrrrÚget_info:s ÿ 
 
 
ürfzDtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[ProcessInfo]]ccs ddi}|V}dd„|dDƒS)zj
    Returns information about all running processes.
 
    :returns: An array of process info blocks.
    rdzSystemInfo.getProcessInfocSsg|]}t |¡‘qSr)r\r"rJrrrrM[sz$get_process_info.<locals>.<listcomp>Z processInforrerrrÚget_process_infoQs
ÿrg)Ú
__future__rÚutilrrZ dataclassesrÚenumÚtypingrr)r.r4ÚEnumr9r>rArNr\rfrgrrrrÚ<module>s,  8$#3