
    +gN                    n   S SK Jr  SSKJrJr  S SKJr  S SKrS SKr " S S\R                  5      r
\ " S S	5      5       r\ " S
 S5      5       r\ " S S5      5       r\ " S S5      5       rSS jrSS jrSS jrSS jr    SS jr    SS jr  S      S!S jjrSS jrS"S jrS"S jrS"S jrg)#    )annotations   )event_classT_JSON_DICT)	dataclassNc                  6    \ rS rSrSrSrSrS r\S 5       r	Sr
g)	PressureLevel   z
Memory pressure level.
moderatecriticalc                    U R                   $ N)value)selfs    v/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v133/memory.pyto_jsonPressureLevel.to_json   s    zz    c                    U " U5      $ r    clsjsons     r   	from_jsonPressureLevel.from_json   s    4yr   r   N)__name__
__module____qualname____firstlineno____doc__MODERATECRITICALr   classmethodr   __static_attributes__r   r   r   r	   r	      s,     HH  r   r	   c                  N    \ rS rSr% SrS\S'   S\S'   S\S'   S r\S	 5       rS
r	g)SamplingProfileNode   z
Heap profile sample.
floatsizetotalztyping.List[str]stackc                    [        5       nU R                  US'   U R                  US'   U R                   Vs/ s H  o"PM     snUS'   U$ s  snf )Nr)   r*   r+   )dictr)   r*   r+   r   r   is      r   r   SamplingProfileNode.to_json*   sI    vyyV

W$(JJ/JqJ/W 0s   A
c           
         U " [        US   5      [        US   5      US    Vs/ s H  n[        U5      PM     snS9$ s  snf )Nr)   r*   r+   )r)   r*   r+   )r(   strr   r   r/   s      r   r   SamplingProfileNode.from_json1   sF    tF|$W&#'=1=a3q6=1
 	
 2s   >r   N
r   r   r   r   r    __annotations__r   r#   r   r$   r   r   r   r&   r&      s6     K L  
 
r   r&   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)SamplingProfile:   z 
Array of heap profile samples.
z typing.List[SamplingProfileNode]samplesztyping.List[Module]modulesc                    [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                   Vs/ s H  o"R                  5       PM     snUS'   U$ s  snf s  snf )Nr:   r;   )r-   r:   r   r;   r.   s      r   r   SamplingProfile.to_jsonC   sV    v04=199;=Y04=199;=Y >=s   A'A,c           	         U " US    Vs/ s H  n[         R                  U5      PM     snUS    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf s  snf )Nr:   r;   )r:   r;   )r&   r   Moduler3   s      r   r   SamplingProfile.from_jsonI   sX    ?CIO!(2215O26y/B/QV%%a(/B
 	
OBs
   AA
r   Nr5   r   r   r   r8   r8   :   s.     .-   
 
r   r8   c                  X    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S	 r\S
 5       rSr	g)r?   Q   z
Executable module information
r2   nameuuidbase_addressr(   r)   c                    [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U$ )NrC   rD   baseAddressr)   )r-   rC   rD   rE   r)   r   r   s     r   r   Module.to_jsonc   sE    vyyVyyV"//]yyVr   c           	     t    U " [        US   5      [        US   5      [        US   5      [        US   5      S9$ )NrC   rD   rG   r)   )rC   rD   rE   r)   )r2   r(   r   s     r   r   Module.from_jsonk   s@    T&\"T&\"T-01tF|$	
 	
r   r   Nr5   r   r   r   r?   r?   Q   s=     I I  K 
 
r   r?   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)
DOMCounteru   z
DOM object counter data.
r2   rC   intcountc                V    [        5       nU R                  US'   U R                  US'   U$ )NrC   rP   )r-   rC   rP   rH   s     r   r   DOMCounter.to_json   s(    vyyV

Wr   c                @    U " [        US   5      [        US   5      S9$ )NrC   rP   )rC   rP   )r2   rO   r   s     r   r   DOMCounter.from_json   s'    T&\"d7m$
 	
r   r   Nr5   r   r   r   rM   rM   u   s.    
 I J 
 
r   rM   c               #  l   #    SS0n U v n[        US   5      [        US   5      [        US   5      4$ 7f)z
Retruns current DOM object counters.

:returns: A tuple with the following items:

    0. **documents** - 
    1. **nodes** - 
    2. **jsEventListeners** - 
methodzMemory.getDOMCounters	documentsnodesjsEventListeners)rO   cmd_dictr   s     r   get_dom_countersr\      sN      	)H >DDDMD#$% s   24c               #  v   #    SS0n U v nUS    Vs/ s H  n[         R                  U5      PM     sn$ s  snf 7f)zj
Retruns DOM object counters after preparing renderer for leak detection.

:returns: DOM object counters.
rV   z%Memory.getDOMCountersForLeakDetectioncounters)rM   r   )r[   r   r/   s      r   #get_dom_counters_for_leak_detectionr_      sG      	9H >D-1*-=>-=J  #-=>>>s   949c               #     #    SS0n U v ng7f)z
Prepares for leak detection by terminating workers, stopping spellcheckers,
dropping non-essential internal caches, running garbage collections, etc.
rV   zMemory.prepareForLeakDetectionNr   rZ   s     r   prepare_for_leak_detectionra      s      	2H >D   
c               #     #    SS0n U v ng7f)z0
Simulate OomIntervention by purging V8 memory.
rV   z$Memory.forciblyPurgeJavaScriptMemoryNr   rZ   s     r   !forcibly_purge_java_script_memoryrd      s     
 	8H >Drb   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Enable/disable suppressing memory pressure notifications in all processes.

:param suppressed: If true, memory pressure notifications will be suppressed.

suppressedz)Memory.setPressureNotificationsSuppressedrV   paramsNr-   )rf   rh   r[   r   s       r   %set_pressure_notifications_suppressedrj      s,      &F%<=H >Ds   c              #  X   #    [        5       nU R                  5       US'   SUS.nUv ng7f)zu
Simulate a memory pressure notification in all processes.

:param level: Memory pressure level of the notification.
levelz#Memory.simulatePressureNotificationrg   N)r-   r   )rl   rh   r[   r   s       r   simulate_pressure_notificationrm      s3      &FmmoF7O7H >Ds   (*c              #  N   #    [        5       nU b  XS'   Ub  XS'   SUS.nUv ng7f)z
Start collecting native memory profile.

:param sampling_interval: *(Optional)* Average number of bytes between samples.
:param suppress_randomness: *(Optional)* Do not randomize intervals between samples.
NsamplingIntervalsuppressRandomnesszMemory.startSamplingrg   ri   )sampling_intervalsuppress_randomnessrh   r[   r   s        r   start_samplingrs      sB      &F$%6!"&':#$(H >Ds   #%c               #     #    SS0n U v ng7f)z(
Stop collecting native memory profile.
rV   zMemory.stopSamplingNr   rZ   s     r   stop_samplingru      s     
 	'H >Drb   c               #  J   #    SS0n U v n[         R                  US   5      $ 7f)zb
Retrieve native memory allocations profile
collected since renderer process startup.

:returns: 
rV   z Memory.getAllTimeSamplingProfileprofiler8   r   rZ   s     r   get_all_time_sampling_profilery     2      	4H >D$$T)_55   !#c               #  J   #    SS0n U v n[         R                  US   5      $ 7f)za
Retrieve native memory allocations profile
collected since browser process startup.

:returns: 
rV   z Memory.getBrowserSamplingProfilerw   rx   rZ   s     r   get_browser_sampling_profiler}     rz   r{   c               #  J   #    SS0n U v n[         R                  US   5      $ 7f)ze
Retrieve native memory allocations profile collected since last
``startSampling`` call.

:returns: 
rV   zMemory.getSamplingProfilerw   rx   rZ   s     r   get_sampling_profiler   $  s2      	-H >D$$T)_55r{   )returnzGtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[int, int, int]])r   zCtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[DOMCounter]])r   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])rf   boolr   r   )rl   r	   r   r   )NN)rq   ztyping.Optional[int]rr   ztyping.Optional[bool]r   r   )r   z;typing.Generator[T_JSON_DICT, T_JSON_DICT, SamplingProfile])
__future__r   utilr   r   dataclassesr   enumtypingEnumr	   r&   r8   r?   rM   r\   r_   ra   rd   rj   rm   rs   ru   ry   r}   r   r   r   r   <module>r      s   # * !  DII  
 
 
: 
 
 
,  
  
  
F 
 
 
2*
?	7"	7$ 3759/2 
8,666r   