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
U
[±do ã@s¦ddlmZddlmZmZddlmZddlZddlZeGdd„dƒƒZ    dd    œd
d „Z
dd dd œdd„Z ddd œdd„Z dd    œdd„Z edƒeGdd„dƒƒƒZdS)é)Ú annotationsé)Ú event_classÚ T_JSON_DICT)Ú    dataclassNc@s6eZdZUdZded<ded<dd„Zedd    „ƒZd
S) ÚMetricz$
    Run-time execution metric.
    ÚstrÚnameÚfloatÚvaluecCstƒ}|j|d<|j|d<|S)Nr    r )Údictr    r )ÚselfÚjson©rúid:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/devtools/v85/performance.pyÚto_jsons
 
zMetric.to_jsoncCs|t|dƒt|dƒdS)Nr    r )r    r )rr
©ÚclsrrrrÚ    from_jsons
 
þzMetric.from_jsonN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rÚ classmethodrrrrrr s
rz0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])Úreturnccsddi}|V}dS)z3
    Disable collecting and reporting metrics.
    ÚmethodzPerformance.disableNr©Úcmd_dictrrrrÚdisable&sÿrztyping.Optional[str])Ú time_domainrccs*tƒ}|dk    r||d<d|dœ}|V}dS)zš
    Enable collecting and reporting metrics.
 
    :param time_domain: *(Optional)* Time domain to use for collecting and reporting duration metrics.
    NÚ
timeDomainzPerformance.enable©rÚparams©r ©r r#rrrrrÚenable0sþr&rccs"tƒ}||d<d|dœ}|V}dS)a
    Sets time domain to use for collecting and reporting duration metrics.
    Note that this must be called before enabling metrics collection. Calling
    this method while metrics collection is enabled returns an error.
 
    **EXPERIMENTAL**
 
    :param time_domain: Time domain
    r!zPerformance.setTimeDomainr"Nr$r%rrrÚset_time_domainBs þr'z?typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[Metric]]ccs ddi}|V}dd„|dDƒS)zj
    Retrieve current values of run-time metrics.
 
    :returns: Current values for run-time metrics.
    rzPerformance.getMetricscSsg|]}t |¡‘qSr©rr©Ú.0ÚirrrÚ
<listcomp>aszget_metrics.<locals>.<listcomp>ÚmetricsrrrrrÚ get_metricsWs
ÿr.zPerformance.metricsc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) ÚMetricsz(
    Current values of the metrics.
    ztyping.List[Metric]r-rÚtitler)rrcCs"|dd„|dDƒt|dƒdS)NcSsg|]}t |¡‘qSrr(r)rrrr,rsz%Metrics.from_json.<locals>.<listcomp>r-r0)r-r0)rrrrrros
þzMetrics.from_jsonN)rrrrrrrrrrrr/ds
 
r/)N)Ú
__future__rÚutilrrZ dataclassesrÚenumÚtypingrrr&r'r.r/rrrrÚ<module>s   ÿ