hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
Ë
Iñúhƒ`ãóÎ —dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z     ddl Z ddlmZddlmZddlmZddlmZddlmZdd    lmZdd
lmZdd lmZdd lmZdd lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlm Z ddlm!Z!ddlm"Z"ddlm#Z#ddlm$Z$ddlm%Z%ddlm&Z&ddlm'Z'ddlm(Z(ddlm)Z)ddlm*Z*dd lm+Z+dd!lm,Z,dd"lm-Z-dd#lm.Z.dd$lm/Z/dd%lm0Z0dd&lm1Z1dd'lm2Z2dd(lm3Z3dd)lm4Z4dd*lm5Z5dd+lm6Z6dd,lm7Z7dd-lm8Z8dd.lm9Z9dd/lm:Z:dd0lm;Z;dd1lm<Z<dd2lm=Z=dd3lm>Z>dd4lm?Z@er!d5ZAdd6lmBZCdd7lBmDZDdd8lBmEZEdd9lBmFZFdd:lBmGZGn—e7rIdd;lmHZCdd<lImJZJdd=lImKZKdd>lImLZLdd?lImMZMdd@lImNZNddAlImOZOddBlHmPZPddClHmQZQddDlHmRZRddElHmSZSddFlHmTZTnLe rddGlmUZCnCerddHlmVZCn:e6rddIlmWZCddJlWmXZXddKlWmYZYd5ZAn#er    ddLlmZZCd5ZAndMe    j¶›dNZ\e]e\«‚gdO¢Z^e^j¿eCjÀ«eaeCjÄdP«r^ddQlmcZced«ZedZfegec«D]BZfefjÑdR«sŒefjÓ«sŒ&ejecef«eeef<e^j×ef«ŒD[e[feCjØZldSZmdTZneodU„enjádV«D««Zqeje dWe j«Zrdasdateu«ZvewenjñdVdX««ejeCjòdYd«k7r¢dZeCjòjô›d[Z\e\d\z Z\eaeCjòdY«r>dVj÷e|e}eCjòjü«««Ze\d]e›d^en›d_z Z\n    e\d`en›d_z Z\ejeCjòdadb«Z€e\dce€›z Z\e\ddz Z\e e\«‚eaeCde«reCjZ‚ndf„Z‚dg„Zƒdh„Z„Gdi„dj«Zbegeb«Dchc]}|jÑdk«rŒ|dlvsŒ|’Œc}Z…Gdm„dneb«Z†do„Z‡dp„Zˆia‰eŠ«Z‹d™dq„ZŒdr„eŒ_dseŒj_d™dt„ZŽdšdv„Zd›dw„Z    e
j"«j$e«iZ“    e
j"«j$edu¬x«iZ•dy„Z–dz„Z—d{„Z˜dœd|„Z™e“j5«Z›e•j5«Zœdœd}„Zd~„ZžeaeCd«rd›d€„ZŸe^j×d«eaed«s    eaeCd«r5eaed«rej@Z n eCj@Z e^j×d«d‚„Z¡dƒ„Z¢d„„Z£d›d…„Z¤dd†„Z¥ejLe@jd‡«e¥_dˆe¥j_dd‰„Z§ejLe@jdŠ«e§_dˆe§j_džd‹„Z¨dŒ„Z©d„ZªeaeCdŽ«rd›d„Z«e^j×dŽ«eaeCd«rd‘„Z¬e^j×d«eaeCd’«rd“„Z­e^j×d’«d”„Z®d•„Z¯e7rd–„Z°d—„Z±d˜„Z²[>y#e $rdZ YŒwxYwcc}w#e”$riZ“YŒÕwxYw#e”$riZ•YŒ¼wxYw)Ÿa;psutil is a cross-platform library for retrieving information on
running processes and system utilization (CPU, memory, disks, network,
sensors) in Python. Supported platforms:
 
 - Linux
 - Windows
 - macOS
 - FreeBSD
 - OpenBSD
 - NetBSD
 - Sun Solaris
 - AIX
 
Supported Python versions are cPython 3.6+ and PyPy.
éNé)Ú_common)ÚAIX)ÚBSD)Ú
CONN_CLOSE)ÚCONN_CLOSE_WAIT)Ú CONN_CLOSING)ÚCONN_ESTABLISHED)ÚCONN_FIN_WAIT1)ÚCONN_FIN_WAIT2)Ú CONN_LAST_ACK)Ú CONN_LISTEN)Ú    CONN_NONE)Ú CONN_SYN_RECV)Ú CONN_SYN_SENT)ÚCONN_TIME_WAIT)ÚFREEBSD)ÚLINUX)ÚMACOS)ÚNETBSD)ÚNIC_DUPLEX_FULL)ÚNIC_DUPLEX_HALF)ÚNIC_DUPLEX_UNKNOWN)ÚOPENBSD)ÚOSX)ÚPOSIX)ÚPOWER_TIME_UNKNOWN)ÚPOWER_TIME_UNLIMITED)Ú STATUS_DEAD)ÚSTATUS_DISK_SLEEP)Ú STATUS_IDLE)Ú STATUS_LOCKED)Ú STATUS_PARKED)ÚSTATUS_RUNNING)ÚSTATUS_SLEEPING)ÚSTATUS_STOPPED)ÚSTATUS_TRACING_STOP)ÚSTATUS_WAITING)Ú STATUS_WAKING)Ú STATUS_ZOMBIE)ÚSUNOS)ÚWINDOWS)Ú AccessDenied)ÚError)Ú NoSuchProcess)ÚTimeoutExpired)Ú ZombieProcess)Údebug)Úmemoize_when_activated)Ú wrap_numbersz/proc)Ú_pslinux)ÚIOPRIO_CLASS_BE)ÚIOPRIO_CLASS_IDLE)ÚIOPRIO_CLASS_NONE)ÚIOPRIO_CLASS_RT)Ú
_pswindows)ÚABOVE_NORMAL_PRIORITY_CLASS)ÚBELOW_NORMAL_PRIORITY_CLASS)ÚHIGH_PRIORITY_CLASS)ÚIDLE_PRIORITY_CLASS)ÚNORMAL_PRIORITY_CLASS)ÚREALTIME_PRIORITY_CLASS)ÚCONN_DELETE_TCB)Ú IOPRIO_HIGH)Ú
IOPRIO_LOW)Ú IOPRIO_NORMAL)ÚIOPRIO_VERYLOW)Ú_psosx)Ú_psbsd)Ú_pssunos)Ú
CONN_BOUND)Ú    CONN_IDLE)Ú_psaixz    platform z is not supported)Gr.r/r1r-r0Ú version_infoÚ __version__r$r!r%r r&r'r*rr)r"r(r"r#r
rrr r rrrr rr    rÚAF_LINKrrrrrrrrrrrrrr+r,rÚProcessÚPopenÚ
pid_existsÚpidsÚ process_iterÚ
wait_procsÚvirtual_memoryÚ swap_memoryÚ    cpu_timesÚ cpu_percentÚcpu_times_percentÚ    cpu_countÚ    cpu_statsÚnet_io_countersÚnet_connectionsÚ net_if_addrsÚ net_if_statsÚdisk_io_countersÚdisk_partitionsÚ
disk_usageÚusersÚ    boot_timeÚrlimit)Ú _psutil_posixÚRLIMzGiampaolo Rodola'z7.1.1c#ó2K—|]}t|«–—Œy­w©N)Úint)Ú.0Únums  úBH:\Change_password\venv_build\Lib\site-packages\psutil/__init__.pyú    <genexpr>rnÑsèø€Ò@ #”S˜—XÑ@ùó‚ú.Ú    monotonicÚÚversionzversion conflict: z  C extension z.module was built for another version of psutilz (z  instead of ú)z (different than Ú__file__z%the existing psutil install directoryz9; you may try to 'pip uninstall psutil', manually remove z1 or clean the virtual env somehow, then reinstallÚppid_mapcó —i}t«D])}    tj|«j«||<Œ+|S#tt
f$rYŒ?wxYw)z{Return a {pid: ppid, ...} dict for all running processes in
        one shot. Used to speed up Process.children().
        )rRÚ _psplatformrOÚppidr/r1)ÚretÚpids  rmÚ    _ppid_mapr|üs\€ðˆÜ“6ò    ˆCð Ü&×.Ñ.¨sÓ3×8Ñ8Ó:C’ð    ð
ˆ
øô"¤=Ð1ò Ùð ús‘&;»A Á A có´—tj«}t||z
«}|dkrdnd}tjj|«j    |«S)z(Format seconds in a human readable form.i€Qz%H:%M:%Sz%Y-%m-%d %H:%M:%S)ÚtimerjÚdatetimeÚ fromtimestampÚstrftime)ÚsecsÚnowÚsecs_agoÚfmts    rmÚ _pprint_secsr†    sK€ä
)‰)‹+€Cܐ3˜‘:‹€HØ  <Ò/‰*Ð5H€CÜ × Ñ × *Ñ *¨4Ó 0× 9Ñ 9¸#Ó >Ð>ócód—ttj«}||vrd|›d|›}t|«‚y)z+Check net_connections()'s `kind` parameter.zinvalid kind argument z; valid ones are: N)ÚtuplerÚ    conn_tmapÚ
ValueError)ÚkindÚkindsÚmsgs   rmÚ_check_conn_kindrs<€ä ”'×#Ñ#Ó $€EØ 5ÑØ& t hÐ.@ÀÀÐHˆÜ˜‹oÐðr‡có,—eZdZdZdCd„ZdDd„Zd„Zd„ZeZd„Z    d„Z
d    „Z d
„Z e d „«Zej d „«ZdEd „Zd„Zd„Zd„Zed„«Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZdCd„Ze red„«Z!d„Z"d„Z#d„Z$e%e&jNd«rd„Z(e%e&jNd «rdEd!„Z)e%e&jNd"«rdCd#„Z*e%e&jNd$«rdCd%„Z+e%e&jNd&«rd'„Z,e%e&jNd(«rd)„Z-e.rd*„Z/d+„Z0d,„Z1e%e&jNd-«rd.„Z2dDd/„Z3dCd0„Z4ed1„«Z5ed2„«Z6d3„Z7dFd4„Z8e%e&jNd5«rdGd6„Z9d7„Z:dHd8„Z;e<jzd9¬:«dHd;„«Z>e rd<„Z?d=„Z@d>„ZAd?„ZBd@„ZCdA„ZDdCdB„ZEy)IrOaRepresents an OS process with the given PID.
    If PID is omitted current process PID (os.getpid()) is used.
    Raise NoSuchProcess if PID does not exist.
 
    Note that most of the methods of this class do not make sure that
    the PID of the process being queried has been reused. That means
    that you may end up retrieving information for another process.
 
    The only exceptions for which process identity is pre-emptively
    checked and guaranteed are:
 
     - parent()
     - children()
     - nice() (set)
     - ionice() (set)
     - rlimit() (set)
     - cpu_affinity (set)
     - suspend()
     - resume()
     - send_signal()
     - terminate()
     - kill()
 
    To prevent this problem for all other methods you can use
    is_running() before querying the process.
    Ncó&—|j|«yri)Ú_init)Úselfr{s  rmÚ__init__zProcess.__init__:s €Ø 
‰
3r‡có²—|€tj«}n6|dkrd|›d}t|«‚    tjj |«||_d|_    d|_
d|_ d|_ d|_ d|_tj «|_d|_tj&|«|_d|_d|_t.|_|j2df|_    |j7«|_y#t $r}d}t||¬«|‚d}~wwxYw#t8$rYyt:$rYyt$r|sd}t||¬«d‚d|_ YywxYw)    Nrz$pid must be a positive integer (got rtzprocess PID out of range©rŽFzprocess PID not foundT)ÚosÚgetpidr‹rxÚcextÚcheck_pid_rangeÚ OverflowErrorr/Ú_pidÚ_nameÚ_exeÚ _create_timeÚ_goneÚ _pid_reusedÚ_hashÚ    threadingÚRLockÚ_lockÚ_ppidrOÚ_procÚ_last_sys_cpu_timesÚ_last_proc_cpu_timesÚ    _SENTINELÚ    _exitcoder{Ú_identÚ
_get_identr-r1)r“r{Ú _ignore_nsprŽÚerrs     rmr’z Process._init=sP€Ø ˆ;Ü—)‘)“+‰CàQŠwØ<¸S¸EÀÐCÜ  “oÐ%ð ;Ü× Ñ ×0Ñ0°Ô5ð
ˆŒ    ØˆŒ
؈Œ    Ø ˆÔ؈Œ
Ø ˆÔ؈Œ
Ü—_‘_Ó&ˆŒ
àˆŒ
ô!×(Ñ(¨Ó-ˆŒ
Ø#'ˆÔ Ø$(ˆÔ!Ü"ˆŒØ—x‘x Ð&ˆŒ ð    ØŸ/™/Ó+ˆDKøô-!ò ;Ø0Ü# C¨SÔ1°sÐ:ûð ;ûô.ò    ñ Üò    ñ Üò    ÙØ-Ü# C¨SÔ1°tÐ;؈DŽJð        ús5¯C<Ã&DÃ<    DÄDÄDÄ    EÄ(EÄ2!EÅEcó,—tr9|jjd¬«|_|j|jfSt
s t str(|j|jjd¬«fS|j|j«fS)aqReturn a (pid, uid) tuple which is supposed to identify a
        Process instance univocally over time. The PID alone is not
        enough, as it can be assigned to a new process after this one
        terminates, so we add process creation time to the mix. We need
        this in order to prevent killing the wrong process later on.
        This is also known as PID reuse or PID recycling problem.
 
        The reliability of this strategy mostly depends on
        create_time() precision, which is 0.01 secs on Linux. The
        assumption is that, after a process terminates, the kernel
        won't reuse the same PID after such a short period of time
        (0.01 secs). Technically this is inherently racy, but
        practically it should be good enough.
 
        NOTE: unreliable on FreeBSD and OpenBSD as ctime is subject to
        system clock updates.
        T)Ú    fast_only)rq)r,r§Ú create_timerŸr{rrr©r“s rmr­zProcess._get_identlsz€õ& ð !%§
¡
× 6Ñ 6ÀР6Ó FˆDÔ Ø—H‘H˜d×/Ñ/Ð0Ð 0Ý •f¥ð—H‘H˜dŸj™j×4Ñ4¸tÐ4ÓDÐEÐ Eà—H‘H˜d×.Ñ.Ó0Ð1Ð 1r‡có—tj«}|j|d<|jr|j|d<|j    «5|j
rd|d<n'    |j «|d<|j«|d<|jtdhvr|j|d<|jt|j«|d<d    j|j j"|j j$d
j'|j)«Dcgc] \}}|›d |›‘Œc}}««cddd«S#t$rd|d<YŒÐt$rd|d<YŒßt$rYŒéwxYwcc}}w#1swYyxYw) Nr{Únamezterminated + PID reusedÚstatusÚzombieÚ
terminatedÚexitcodeÚstartedz    {}.{}({})ú, ú=)Ú collectionsÚ OrderedDictr{rÚoneshotr¡rµr¶r1r/r-r«rªrŸr†ÚformatÚ    __class__Ú
__module__Ú__name__ÚjoinÚitems)r“ÚinfoÚkÚvs    rmÚ__str__zProcess.__str__sX€Ü×&Ñ&Ó(ˆØ—h‘hˆˆU‰ Ø :Š:ØŸ:™:ˆD‰LØ \‰\‹^ñ    Ø×ÒØ!:X’ðØ#'§9¡9£;D˜‘LØ%)§[¡[£]D˜‘Nð~‰~¤i°Ð%6Ñ6Ø#'§>¡>ZÑ Ø× Ñ Ð,Ü".¨t×/@Ñ/@Ó"AY‘à×%Ñ%Ø—‘×)Ñ)Ø—‘×'Ñ'Ø—    ‘    °D·J±J³L×A©D¨A¨q˜a˜S  ! š<ÓAÓBó÷'    ñ    øô%ò.Ø%-D˜“NÜ$ò2Ø%1D˜“NÜ#òÙðüóB÷-    ð    úsUÁE<Á#&E        BE<Ä#E6Ä4 E<Å    E3ÅE<Å E3Å&E<Å(E3Å0E<Å2E3Å3    E<Å<Fcó —t|t«stSts tst
r?|j \}}|j \}}||k(r|r|s    |j«tk(S|j |j k(S#t$rYŒ$wxYwri)
Ú
isinstancerOÚNotImplementedrrr+r¬r¶r*r.)r“ÚotherÚpid1Úident1Úpid2Úident2s      rmÚ__eq__zProcess.__eq__¯s‚€ô˜%¤Ô)Ü!Ð !Ý •f¥ð  Ÿ;™;‰LˆD&Ø Ÿ<™<‰LˆD&ؐtŠ|Ù¡&ðØ#Ÿ{™{›}´ Ñ=Ð=ð{‰{˜eŸl™lÑ*Ð*øô!òÙðúsÁB    B  B có—||k( Sri©)r“rÍs  rmÚ__ne__zProcess.__ne__Äs€Ø˜5‘=РРr‡cóf—|j€t|j«|_|jSri)r¢Úhashr¬r³s rmÚ__hash__zProcess.__hash__Çs&€Ø :‰:РܘdŸk™kÓ*ˆDŒJ؏z‰zÐr‡cóž—|js|j«s1|jr$d}t|j|j|¬«‚yy)z9Raises NoSuchProcess in case process PID has been reused.z4process no longer exists and its PID has been reusedr–N)r¡Ú
is_runningr/r{r)r“rŽs  rmÚ_raise_if_pid_reusedzProcess._raise_if_pid_reusedÌsD€à × Ò  D§O¡OÔ$5¸$×:JÒ:JðIˆCÜ §¡¨$¯*©*¸#Ô>Ð >ð;KÐ$5r‡có—|jS)zThe process PID.)rœr³s rmr{z Process.pidØs€ðy‰yÐr‡c#óÎK—|j5t|d«rd–—n    |jj|«|jj|«|j
j|«t r|jj|«|jj«d–—|jj|«|jj|«|j
j|«t r|jj|«|jj«ddd«y#|jj|«|jj|«|j
j|«t r|jj|«|jj«wxYw#1swYyxYw­w)a#Utility context manager which considerably speeds up the
        retrieval of multiple process information at the same time.
 
        Internally different process info (e.g. name, ppid, uids,
        gids, ...) may be fetched by using the same routine, but
        only one information is returned and the others are discarded.
        When using this context manager the internal routine is
        executed once (in the example below on name()) and the
        other info are cached.
 
        The cache is cleared when exiting the context manager block.
        The advice is to use this every time you retrieve more than
        one information about the process. If you're lucky, you'll
        get a hell of a speedup.
 
        >>> import psutil
        >>> p = psutil.Process()
        >>> with p.oneshot():
        ...     p.name()  # collect multiple info
        ...     p.cpu_times()  # return cached value
        ...     p.cpu_percent()  # return cached value
        ...     p.create_time()  # return cached value
        ...
        >>>
        Ú_cacheN) r¥ÚhasattrrWÚcache_activateÚ memory_inforyrÚuidsr§Ú oneshot_enterÚcache_deactivateÚ oneshot_exitr³s rmr¿zProcess.oneshotßs]èø€ð6Z‰Zñ&    .ܐt˜XÔ&õ ð.à—N‘N×1Ñ1°$Ô7à×$Ñ$×3Ñ3°DÔ9à—I‘I×,Ñ,¨TÔ2åØŸ    ™    ×0Ñ0°Ô6à—J‘J×,Ñ,Ô.Ûà—N‘N×3Ñ3°DÔ9Ø×$Ñ$×5Ñ5°dÔ;Ø—I‘I×.Ñ.¨tÔ4ÝØŸ    ™    ×2Ñ2°4Ô8Ø—J‘J×+Ñ+Ô-÷M&    .ð&    .øðB—N‘N×3Ñ3°DÔ9Ø×$Ñ$×5Ñ5°dÔ;Ø—I‘I×.Ñ.¨tÔ4ÝØŸ    ™    ×2Ñ2°4Ô8Ø—J‘J×+Ñ+Õ-ú÷M&    .ð&    .üs6‚ G%G£BEÂ3B GÄ?    G%ÅBGÇGÇG"ÇG%c    óJ—t}|•t|tttt
f«sdt |«›}t|«‚t    |«}||z
}|rJdjt|«dkDrdnddjtt|«««}t|«‚i}|xs|}|j«5|D]-}    |dk(r |j}    nt!||«}
|
«}    |    ||<Œ/    ddd«|S#t"t$f$r|}    YŒ%t&$r|r‚YŒ[wxYw#1swY|SxYw)    aäUtility method returning process information as a
        hashable dictionary.
        If *attrs* is specified it must be a list of strings
        reflecting available Process class' attribute names
        (e.g. ['cpu_times', 'name']) else all public (read
        only) attributes are assumed.
        *ad_value* is the value which gets assigned in case
        AccessDenied or ZombieProcess exception is raised when
        retrieving that particular process information.
        Nzinvalid attrs type zinvalid attr name{} {}rÚsrrr»r{)Ú_as_dict_attrnamesrËÚlistr‰ÚsetÚ    frozensetÚtypeÚ    TypeErrorrÀÚlenrÄÚmapÚreprr‹r¿r{Úgetattrr-r1ÚNotImplementedError) r“ÚattrsÚad_valueÚ valid_namesrŽÚ invalid_namesÚretdictÚlsrµrzÚmeths            rmÚas_dictzProcess.as_dict"s8€ô)ˆ Ø Ð Ü˜e¤d¬E´3¼    Ð%BÔCØ+¬D°«K¨=Ð9Ü “nÐ$ܘ“JˆEØ! KÑ/ˆMÙØ.×5Ñ5ܘ}Ó-°Ò1‘C°rØ—I‘Iœc¤$¨ Ó6Ó7óô! “oÐ%àˆØ Ò !kˆØ \‰\‹^ñ    $Øò $ðؘu’}Ø"Ÿh™h™ä& t¨TÓ2˜Ù"›f˜ð!$˜’ ñ! $÷    $ð$ˆøô%¤mÐ4ò#Ø"’CÜ*òñØÙð ú÷    $ð$ˆús<Â6DÂ=%C4Ã"DÃ4DÄDÄ DÄDÄDÄDÄD"có"—ttn t«d}|j|k(ry|j«}|Et    |j«j «}    t    |«}|j «|kr|Syy#t $rYywxYw)zReturn the parent process as a Process object pre-emptively
        checking whether PID has been reused.
        If no parent is known return None.
        Nr)Ú _LOWEST_PIDrRr{ryrOr²r/)r“Ú
lowest_pidryÚ
proc_ctimeÚparents     rmrÿzProcess.parentQs‘€ô
%0Ð$;•[ÄÃÈÁˆ
Ø 8‰8zÒ !ØØy‰y‹{ˆØ Ð ô! §¡Ó*×6Ñ6Ó8ˆJð Ü  ›Ø×%Ñ%Ó'¨:Ò5Ø!Mð6ð øô!ò Ùð úsÁ B    B Bcóv—g}|j«}|$|j|«|j«}|Œ$|S)zReturn the parents of this process as a list of Process
        instances. If no parents are known return an empty list.
        )rÿÚappend)r“ÚparentsÚprocs   rmrzProcess.parentsgs@€ðˆØ{‰{‹}ˆØÐØ N‰N˜4Ô  Ø—;‘;“=ˆDðÑðˆr‡có2—|js |jry    |t|j«k7|_|jr4tj |j«t |j«‚y#t$rYyt $r
d|_YywxYw)zãReturn whether this process is running.
 
        It also checks if PID has been reused by another process, in
        which case it will remove the process from `process_iter()`
        internal cache and return False.
        FT)r r¡rOr{Ú _pids_reusedÚaddr/r1r³s rmrÚzProcess.is_runningrs†€ð :Š:˜×)Ò)Øð    ð
 $¤w¨t¯x©xÓ'8Ñ8ˆDÔ Ø×ÒÜ× Ñ  §¡Ô*Ü# D§H¡HÓ-Ð-ØøÜò    ñÜò    ØˆDŒJÙð    ús›AA9Á9    BÂBÂBcóԗ|j«tr|jj«S|jxs|jj«|_|jS)z`The process parent PID.
        On Windows the return value is cached after first call.
        )rÛrr§ryr¦r³s rmryz Process.ppidsI€ð     ×!Ñ!Ô#Ý Ø—:‘:—?‘?Ó$Ð $àŸ™Ò8 t§z¡z§¡Ó'8ˆDŒJØ—:‘:Ð r‡cóŠ—tr|j |jS|jj«}trWt |«dk\rI    |j «}|r6tjj|d«}|j|«r|}    ||_||j_|S#ttf$rYŒ+wxYw)z>The process name. The return value is cached after first call.ér) r,rr§rµrrîÚcmdliner—ÚpathÚbasenameÚ
startswithr-r1)r“rµr
Ú extended_names    rmrµz Process.name¢sª€õ
t—z‘zÐ-Ø—:‘:Р؏z‰z‰Ó ˆÝ ”S˜“Y "’_ð
-ØŸ,™,›.ñÜ$&§G¡G×$4Ñ$4°W¸Q±ZÓ$@MØ$×/Ñ/°Ô5Ø,™ØˆŒ
؈
‰
ÔØˆ øô!¤-Ð0ò ñ ð  úsÁB0Â0CÃCcó‡—ˆfd„}‰j€:    ‰jj«}|s
    ||¬«}|‰_‰jS‰jS#t$rYŒ*wxYw#t$r}||¬«cYd}~Sd}~wwxYw)zŽThe process executable as an absolute path.
        May also be an empty string.
        The return value is cached after first call.
        cób•—‰j«}|r‰ttd«ryttd«ri|d}tjj    |«rEtjj |«r&tj |tj«r|St|t«r|‚|S)NÚaccessÚX_OKr)
r
rßr—r ÚisabsÚisfilerrrËr-)Úfallbackr
Úexer“s   €rmÚguess_itzProcess.exe.<locals>.guess_itÇs{ø€ð—l‘l“nˆGÙœ7¤2 xÔ0´W¼RÀÔ5Hؘa‘jô
—G‘G—M‘M #Ô&ÜŸ™Ÿ™ sÔ+ÜŸ    ™     #¤r§w¡wÔ/àJܘ(¤LÔ1ؐ؈Or‡N)r)ržr§rr-)r“rrr¯s`   rmrz Process.exeÁs‰ø€ô     ð& 9‰9Ð ð  Ø—j‘j—n‘nÓ&ñðÙ&°Ô4˜ð ”    Øy‰yЈty‰yÐøô(òÙðûô ò .Ù¨Ô-Õ-ûð .ús.”A(±    AÁ    A%Á$A%Á(    BÁ1A?Á9BÁ?Bcó6—|jj«S)z3The command line this process has been called with.)r§r
r³s rmr
zProcess.cmdlineës€àz‰z×!Ñ!Ó#Ð#r‡cób—    |jj«S#t$r    tcYSwxYw)z2The process current status as a STATUS_* constant.)r§r¶r1r*r³s rmr¶zProcess.statusïs/€ð    !Ø—:‘:×$Ñ$Ó&Ð &øÜò    !Ü Ò  ð    !ús ‚œ.­.có—trMt€ d}t|«‚|j«j}    tj
|«j S|jj«S#t$rt|«cYSwxYw)ztThe name of the user that owns the process.
        On UNIX this is calculated by using *real* process uid.
        z0requires pwd module shipped with standard python) rÚpwdÚ ImportErrorrâÚrealÚgetpwuidÚpw_nameÚKeyErrorÚstrr§Úusername)r“rŽÚreal_uids   rmr"zProcess.usernameösw€õ ܈{àHÜ! #Ó&Ð&Ø—y‘y“{×'Ñ'ˆHð %Ü—|‘| HÓ-×5Ñ5Ð5ð
—:‘:×&Ñ&Ó(Ð (øô    ò %ä˜8“}Ò$ð %úsµA.Á.BÂBcóp—|j€|jj«|_|jS)awThe process creation time as a floating point number
        expressed in seconds since the epoch (seconds since January 1,
        1970, at midnight UTC). The return value, which is cached after
        first call, is based on the system clock, which means it may be
        affected by changes such as manual adjustments or time
        synchronization (e.g. NTP).
        )rŸr§r²r³s rmr²zProcess.create_times1€ð × Ñ Ð $Ø $§
¡
× 6Ñ 6Ó 8ˆDÔ Ø× Ñ Ð r‡có6—|jj«S)z6Process current working directory as an absolute path.)r§Úcwdr³s rmr&z Process.cwds€àz‰z~‰~ÓÐr‡có’—|€|jj«S|j«|jj|«y)z'Get or set process niceness (priority).N)r§Únice_getrÛÚnice_set)r“Úvalues  rmÚnicez Process.nices8€à ˆ=Ø—:‘:×&Ñ&Ó(Ð (à × %Ñ %Ô 'Ø J‰J× Ñ  Õ &r‡có6—|jj«S)zVReturn process UIDs as a (real, effective, saved)
            namedtuple.
            )r§râr³s rmrâz Process.uids"s€ð
—:‘:—?‘?Ó$Ð $r‡có6—|jj«S)zVReturn process GIDs as a (real, effective, saved)
            namedtuple.
            )r§Úgidsr³s rmr.z Process.gids)s€ð—:‘:—?‘?Ó$Ð $r‡có6—|jj«S)zVThe terminal associated with this process, if any,
            else None.
            )r§Úterminalr³s rmr0zProcess.terminal/s€ð—:‘:×&Ñ&Ó(Ð (r‡có6—|jj«S)zcReturn the number of file descriptors opened by this
            process (POSIX only).
            )r§Únum_fdsr³s rmr2zProcess.num_fds5ó€ð—:‘:×%Ñ%Ó'Ð 'r‡Ú io_counterscó6—|jj«S)a
Return process I/O statistics as a
            (read_count, write_count, read_bytes, write_bytes)
            namedtuple.
            Those are the number of read/write calls performed and the
            amount of bytes read and written by the process.
            )r§r4r³s rmr4zProcess.io_counters>s€ð—:‘:×)Ñ)Ó+Ð +r‡Ú
ionice_getcó°—|€)| d}t|«‚|jj«S|j«|jj    ||«S)a´Get or set process I/O niceness (priority).
 
            On Linux *ioclass* is one of the IOPRIO_CLASS_* constants.
            *value* is a number which goes from 0 to 7. The higher the
            value, the lower the I/O priority of the process.
 
            On Windows only *ioclass* is used and it can be set to 2
            (normal), 1 (low) or 0 (very low).
 
            Available on Linux and Windows > Vista only.
            z$'ioclass' argument must be specified)r‹r§r6rÛÚ
ionice_set)r“Úioclassr*rŽs    rmÚionicezProcess.ioniceJsT€ðˆØÐ$Ø@CÜ$ S›/Ð)Ø—z‘z×,Ñ,Ó.Ð.à×)Ñ)Ô+Ø—z‘z×,Ñ,¨W°eÓ<Ð<r‡recó^—||j«|jj||«S)a-Get or set process resource limits as a (soft, hard)
            tuple.
 
            *resource* is one of the RLIMIT_* constants.
            *limits* is supposed to be a (soft, hard) tuple.
 
            See "man prlimit" for further info.
            Available on Linux and FreeBSD only.
            )rÛr§re)r“ÚresourceÚlimitss   rmrezProcess.rlimitbs-€ðÐ!Ø×)Ñ)Ô+Ø—:‘:×$Ñ$ X¨vÓ6Ð 6r‡Úcpu_affinity_getc    óŽ—|€,tt|jj«««S|j    «|sXt |jd«r|jj «}n'ttttd¬««««}|jjtt|«««y)a-Get or set process CPU affinity.
            If specified, *cpus* must be a list of CPUs for which you
            want to set the affinity (e.g. [0, 1]).
            If an empty list is passed, all egible CPUs are assumed
            (and set).
            (Windows, Linux and BSD only).
            NÚ_get_eligible_cpusT©Úpercpu) Úsortedrêr§r>rÛrßr@r‰ÚrangerîrWÚcpu_affinity_setré)r“Úcpuss  rmÚ cpu_affinityzProcess.cpu_affinityss‰€ðˆ|Üœc $§*¡*×"=Ñ"=Ó"?Ó@ÓAÐAà×)Ñ)Ô+ÙܘtŸz™zÐ+?Ô@Ø#Ÿz™z×<Ñ<Ó>™ä$¤U¬3¬yÀÔ/EÓ+FÓ%GÓH˜Ø—
‘
×+Ñ+¬D´°T³«OÕ<r‡Úcpu_numcó6—|jj«S)aZReturn what CPU this process is currently running on.
            The returned number should be <= psutil.cpu_count()
            and <= len(psutil.cpu_percent(percpu=True)).
            It may be used in conjunction with
            psutil.cpu_percent(percpu=True) to observe the system
            workload distributed across CPUs.
            )r§rHr³s rmrHzProcess.cpu_num‰s€ð—:‘:×%Ñ%Ó'Ð 'r‡Úenvironcó6—|jj«S)z’The environment variables of the process as a dict.  Note: this
            might not reflect changes made after the process started.
            )r§rJr³s rmrJzProcess.environ–r3r‡có6—|jj«S)z\Return the number of handles opened by this process
            (Windows only).
            )r§Ú num_handlesr³s rmrMzProcess.num_handlesžs€ð—:‘:×)Ñ)Ó+Ð +r‡có6—|jj«S)zkReturn the number of voluntary and involuntary context
        switches performed by this process.
        )r§Únum_ctx_switchesr³s rmrOzProcess.num_ctx_switches¤s€ðz‰z×*Ñ*Ó,Ð,r‡có6—|jj«S)z2Return the number of threads used by this process.)r§Ú num_threadsr³s rmrQzProcess.num_threadsªs€àz‰z×%Ñ%Ó'Ð'r‡Úthreadscó6—|jj«S)zïReturn threads opened by process as a list of
            (id, user_time, system_time) namedtuples representing
            thread id and thread CPU times (user/system).
            On OpenBSD this method requires root access.
            )r§rRr³s rmrRzProcess.threads°s€ð —:‘:×%Ñ%Ó'Ð 'r‡có:—|j«t«}t|j«j    «}g}|sZ|j «D]E\}}||jk(sŒ    t|«}||j    «kr|j |«ŒG|Stjt«}|j «D]\}}||j |«Œt«}    |jg}
|
rv|
j«}||    vrŒ|    j|«||D]E}     t| «}||j    «k} | r"|j |«|
j | «ŒG|
rŒv|S#ttf$rYŒ2wxYw#ttf$rYŒtwxYw)u(Return the children of this process as a list of Process
        instances, pre-emptively checking whether PID has been reused.
        If *recursive* is True return all the parent descendants.
 
        Example (A == this process):
 
         A â”€â”
            â”‚
            â”œâ”€ B (child) â”€â”
            â”‚             â””─ X (grandchild) â”€â”
            â”‚                                â””─ Y (great grandchild)
            â”œâ”€ C (child)
            â””─ D (child)
 
        >>> import psutil
        >>> p = psutil.Process()
        >>> p.children()
        B, C, D
        >>> p.children(recursive=True)
        B, X, Y, C, D
 
        Note that in the example above if process X disappears
        process Y won't be listed as the reference to process A
        is lost.
        )rÛr|rOr{r²rÅrr/r1r½Ú defaultdictrérêÚpopr) r“Ú    recursivervrþrzr{ryÚchildÚreverse_ppid_mapÚseenÚstackÚ    child_pidÚintimes              rmÚchildrenzProcess.children¸sž€ð4     ×!Ñ!Ô#Ü“;ˆô˜TŸX™XÓ&×2Ñ2Ó4ˆ
ØˆÙØ%Ÿ^™^Ó-ò     ‘    Tؘ4Ÿ8™8Ó#ðÜ '¨£ ˜ð&¨×):Ñ):Ó)<Ò<ØŸJ™J uÔ-øð     ðLˆ
ô5 +×6Ñ6´tÓ<Ð Ø%Ÿ^™^Ó-ò 3‘    TØ  Ñ&×-Ñ-¨cÕ2ð 3ô“5ˆDØ—X‘XJˆEÙØ—i‘i“kØ˜$‘;ðØ—‘˜” Ø!1°#Ñ!6ò
Ið    Ü '¨    Ó 2˜ð",¨u×/@Ñ/@Ó/BÑ!B˜Ù!ØŸJ™J uÔ-Ø!ŸL™L¨Ô3øð
òð&ˆ
øô=*¬=Ð9òÚðûô8*¬=Ð9òÙðús%Á)/E2Ä)AFÅ2FÆFÆFÆFcóš‡ —|duxr|dkD}||dkrd|›d}t|«‚t«xsdŠ ˆ fd„}|rX|«}|jj«}t    j
|«|«}|jj«}nL|j }|j}|«}|jj«}||€||_||_y|j|jz
|j|jz
z}    ||z
}
||_||_    |    |
z dz} | ‰ z} t| d«S#t$rYywxYw)    aReturn a float representing the current process CPU
        utilization as a percentage.
 
        When *interval* is 0.0 or None (default) compares process times
        to system CPU times elapsed since last call, returning
        immediately (non-blocking). That means that the first time
        this is called it will return a meaningful 0.0 value.
 
        When *interval* is > 0.0 compares process times to system CPU
        times elapsed before and after the interval (blocking).
 
        In this case is recommended for accuracy that this function
        be called with at least 0.1 seconds between calls.
 
        A value > 100.0 can be returned in case of processes running
        multiple threads on different CPU cores.
 
        The returned value is explicitly NOT split evenly between
        all available logical CPUs. This means that a busy loop process
        running on a system with 2 logical CPUs will be reported as
        having 100% CPU utilization instead of 50%.
 
        Examples:
 
          >>> import psutil
          >>> p = psutil.Process(os.getpid())
          >>> # blocking
          >>> p.cpu_percent(interval=1)
          2.0
          >>> # non-blocking (percentage since last call)
          >>> p.cpu_percent(interval=None)
          2.9
          >>>
        Nçrúinterval is not positive (got rtrcó•—t«‰zSri)Ú_timer)Únum_cpuss€rmÚtimerz"Process.cpu_percent.<locals>.timer+sø€Ü“8˜hÑ&Ð &r‡éd) r‹rZr§rWr~Úsleepr¨r©ÚuserÚsystemÚroundÚZeroDivisionError)r“ÚintervalÚblockingrŽreÚst1Úpt1Úst2Úpt2Ú
delta_procÚ
delta_timeÚoverall_cpus_percentÚsingle_cpu_percentrds             @rmrXzProcess.cpu_percents_ø€ðF 4Ð'Ò:¨H°s©NˆØ Ð  H¨q¢LØ2°8°,¸aÐ@ˆCܘS“/Ð !Ü“;Ò# !ˆô    'ñ Ù“'ˆCØ—*‘*×&Ñ&Ó(ˆCÜ J‰JxÔ  Ù“'ˆCØ—*‘*×&Ñ&Ó(‰Cà×*Ñ*ˆCØ×+Ñ+ˆCÙ“'ˆCØ—*‘*×&Ñ&Ó(ˆC؈{˜c˜kØ+.Ô(Ø,/Ô)Øà—h‘h §¡Ñ)¨c¯j©j¸3¿:¹:Ñ.EÑFˆ
ؘ3‘Yˆ
à#&ˆÔ Ø$'ˆÔ!ð    0ð%/°Ñ$;¸sÑ#BÐ  ð("6¸Ñ!@Ð ÜÐ+¨QÓ/Ð /øô)!ò    áð    úsÄ%D>Ä>    E
Å    E
có6—|jj«S)a%Return a (user, system, children_user, children_system)
        namedtuple representing the accumulated process time, in
        seconds.
        This is similar to os.times() but per-process.
        On macOS and Windows children_user and children_system are
        always set to 0.
        )r§rWr³s rmrWzProcess.cpu_times_s€ðz‰z×#Ñ#Ó%Ð%r‡có6—|jj«S)aReturn a namedtuple with variable fields depending on the
        platform, representing memory information about the process.
 
        The "portable" fields available on all platforms are `rss` and `vms`.
 
        All numbers are expressed in bytes.
        )r§rár³s rmrázProcess.memory_infojs€ðz‰z×%Ñ%Ó'Ð'r‡có6—|jj«S)a]This method returns the same information as memory_info(),
        plus, on some platform (Linux, macOS, Windows), also provides
        additional metrics (USS, PSS and swap).
        The additional metrics provide a better representation of actual
        process memory usage.
 
        Namely USS is the memory which is unique to a process and which
        would be freed if the process was terminated right now.
 
        It does so by passing through the whole process address.
        As such it usually requires higher user privileges than
        memory_info() and is considerably slower.
        )r§Úmemory_full_infor³s rmryzProcess.memory_full_infous€ðz‰z×*Ñ*Ó,Ð,r‡cóœ—ttjj«}||vrd|›dt    |«›}t |«‚|tj jvr |jn |j}|«}t||«}txst«j}|dkDsd|›d}t |«‚|t|«z dzS)aÏCompare process memory to total physical system memory and
        calculate process memory utilization as a percentage.
        *memtype* argument is a string that dictates what type of
        process memory you want to compare against (defaults to "rss").
        The list of available strings can be obtained like this:
 
        >>> psutil.Process().memory_info()._fields
        ('rss', 'vms', 'shared', 'text', 'lib', 'data', 'dirty', 'uss', 'pss')
        zinvalid memtype z; valid types are rz]can't calculate process memory percent because total physical system memory is not positive (rtrf)rérxÚpfullmemÚ_fieldsr‰r‹ÚpmemráryrñÚ _TOTAL_PHYMEMrUÚtotalÚfloat)r“ÚmemtypeÚ valid_typesrŽÚfunÚmetricsr*Ú total_phymems        rmÚmemory_percentzProcess.memory_percent…sé€ôœ;×/Ñ/×7Ñ7Ó8ˆ Ø ˜+Ñ %à" 7 +ð.ܘ+Ó&Ð)ð+ð ô˜S“/Ð !ðœ+×*Ñ*×2Ñ2Ñ2ð × Ò à×&Ñ&ð     ñ
“%ˆÜ˜ Ó)ˆô%Ò>¬Ó(8×(>Ñ(>ˆ ؘaÒð3Ø3?Ð2BÀ!ðEð ô˜S“/Ð !Øœ˜lÓ+Ñ+¨sÑ2Ð2r‡Ú memory_mapscór—|jj«}|r[i}|D]*}|d}|dd}    ttd„|||««||<Œ,t
j }|Dcgc]}||g||¢­Ž‘Œc}St
j}|Dcgc]}||Ž‘Œ    c}S#t$r|||<YŒŠwxYwcc}wcc}w)aüReturn process' mapped memory regions as a list of namedtuples
            whose fields are variable depending on the platform.
 
            If *grouped* is True the mapped regions with the same 'path'
            are grouped together and the different memory fields are summed.
 
            If *grouped* is False every mapped region is shown as a single
            entity and the namedtuple will also include the mapped region's
            address space ('addr') and permission set ('perms').
            ééNcó —||zSrirÔ)ÚxÚys  rmú<lambda>z%Process.memory_maps.<locals>.<lambda>½s
€¸¸A¹€r‡)r§r‡rérïr rxÚ pmmap_groupedÚ    pmmap_ext)    r“ÚgroupedÚitÚdÚtuplr ÚnumsÚntrŒs             rmr‡zProcess.memory_maps«sрð—‘×'Ñ'Ó)ˆBÙØØò'DØ ™7DØ  ˜8Dð'Ü"&¤sÑ+=¸qÀ¹wÈÓ'MÓ"N˜˜$šð    'ô!×.Ñ.Ø78Ö9¨t™˜4Ð* ! D¡'Ô*Ò9Ð9ä ×*Ñ*Ø(*Ö+ 1™˜AšÒ+Ð+øô $ò'Ø"&˜˜$›ð'üò:ùò,s¯BÁ"B/ B4ÂB,Â+B,có6—|jj«S)z˜Return files opened by process as a list of
        (path, fd) namedtuples including the absolute file name
        and file descriptor number.
        )r§Ú
open_filesr³s rmr˜zProcess.open_filesÆs€ð
z‰z×$Ñ$Ó&Ð&r‡cóN—t|«|jj|«S)aTReturn socket connections opened by process as a list of
        (fd, family, type, laddr, raddr, status) namedtuples.
        The *kind* parameter filters for connections that match the
        following criteria:
 
        +------------+----------------------------------------------------+
        | Kind Value | Connections using                                  |
        +------------+----------------------------------------------------+
        | inet       | IPv4 and IPv6                                      |
        | inet4      | IPv4                                               |
        | inet6      | IPv6                                               |
        | tcp        | TCP                                                |
        | tcp4       | TCP over IPv4                                      |
        | tcp6       | TCP over IPv6                                      |
        | udp        | UDP                                                |
        | udp4       | UDP over IPv4                                      |
        | udp6       | UDP over IPv6                                      |
        | unix       | UNIX socket (both UDP and TCP protocols)           |
        | all        | the sum of all the possible families and protocols |
        +------------+----------------------------------------------------+
        )rr§r]©r“rŒs  rmr]zProcess.net_connectionsÍs!€ô,    ˜Ô؏z‰z×)Ñ)¨$Ó/Ð/r‡r])Ú replacementcó&—|j|¬«S)N©rŒ)r]ršs  rmÚ connectionszProcess.connectionsæs€à×#Ñ#¨Ð#Ó.Ð.r‡có¸—|jdkrJ|j«‚|j«|j|j|j}}}|dk(r d}t    |«‚    t j ||«y#t$r8}trt|«rt|||«|‚d|_ t||«|‚d}~wt$r}t||«|‚d}~wwxYw)Nrz›preventing sending signal to process with PID 0 as it would affect every process in the process group of the calling process (os.getpid()) instead of PID 0T)r{rÛr¦rr‹r—ÚkillÚProcessLookupErrorrrQr1r r/ÚPermissionErrorr-)r“Úsigr{ryrµrŽr¯s       rmÚ _send_signalzProcess._send_signalîs̀Ø—x‘x !’|Ð - T§X¡XÓ -Ð#Ø × %Ñ %Ô 'à"Ÿh™h¨¯
©
°D·J±JtˆCؐaŠxðEðô
! “oÐ%ð
7Ü—‘˜˜SÕ!øÜ%ò 8Ýœz¨#œô(¨¨T°4Ó8¸cÐAØ!”
Ü# C¨Ó.°CÐ7ûÜ"ò 7Ü" 3¨Ó-°3Ð6ûð 7ús$Á(A?Á?    CÂ3B;Â; Cà CÃCcó—tr|j|«y|j«|tjk7r4|j «s$d}t |j|j|¬«‚|jj|«y)zÚSend a signal *sig* to process pre-emptively checking
        whether PID has been reused (see signal module constants) .
        On Windows only SIGTERM is valid and is treated as an alias
        for kill().
        zprocess no longer existsr–N) rr¤rÛÚsignalÚSIGTERMrÚr/r{rr§Ú send_signal)r“r£rŽs   rmr¨zProcess.send_signalsd€õ Ø × Ñ ˜cÕ "à × %Ñ %Ô 'Ø”f—n‘nÒ$¨T¯_©_Ô->Ø0Ü# D§H¡H¨d¯j©j¸cÔBÐBØ J‰J× "Ñ " 3Õ 'r‡có¤—tr |jtj«y|j    «|j
j «y)zµSuspend process execution with SIGSTOP pre-emptively checking
        whether PID has been reused.
        On Windows this has the effect of suspending all process threads.
        N)rr¤r¦ÚSIGSTOPrÛr§Úsuspendr³s rmr«zProcess.suspends5€õ
Ø × Ñ œfŸn™nÕ -à × %Ñ %Ô 'Ø J‰J× Ñ Õ  r‡có¤—tr |jtj«y|j    «|j
j «y)z²Resume process execution with SIGCONT pre-emptively checking
        whether PID has been reused.
        On Windows this has the effect of resuming all process threads.
        N)rr¤r¦ÚSIGCONTrÛr§Úresumer³s rmr®zProcess.resume!s5€õ
Ø × Ñ œfŸn™nÕ -à × %Ñ %Ô 'Ø J‰J× Ñ Õ r‡có¤—tr |jtj«y|j    «|j
j «y)z—Terminate the process with SIGTERM pre-emptively checking
        whether PID has been reused.
        On Windows this is an alias for kill().
        N)rr¤r¦r§rÛr§r r³s rmÚ    terminatezProcess.terminate,s3€õ
Ø × Ñ œfŸn™nÕ -à × %Ñ %Ô 'Ø J‰JO‰OÕ r‡có¤—tr |jtj«y|j    «|j
j «y)zjKill the current process with SIGKILL pre-emptively checking
        whether PID has been reused.
        N)rr¤r¦ÚSIGKILLrÛr§r r³s rmr z Process.kill7s3€õ Ø × Ñ œfŸn™nÕ -à × %Ñ %Ô 'Ø J‰JO‰OÕ r‡có¾—||dk\s d}t|«‚|jtur |jS|jj    |«|_|jS)aôWait for process to terminate and, if process is a children
        of os.getpid(), also return its exit code, else None.
        On Windows there's no such limitation (exit code is always
        returned).
 
        If the process is already terminated immediately return None
        instead of raising NoSuchProcess.
 
        If *timeout* (in seconds) is specified and process is still
        alive raise TimeoutExpired.
 
        To wait for multiple Process(es) use psutil.wait_procs().
        rz"timeout must be a positive integer)r‹r«rªr§Úwait)r“ÚtimeoutrŽs   rmr´z Process.waitAsS€ð Ð  w°!¢|Ø6ˆCܘS“/Ð !Ø >‰>¤Ñ *Ø—>‘>Ð !ØŸ™Ÿ™¨Ó1ˆŒØ~‰~Ðr‡ri©F©NN)Úrss©T©Úinet)FrÃrÂÚ __qualname__Ú__doc__r”r’r­rÉÚ__repr__rÒrÕrØrÛÚpropertyr{Ú
contextlibÚcontextmanagerr¿rúrÿrrÚr3ryrµrr
r¶r"r²r&r+rrâr.r0r2rßrxrOr4r:rerGrHrJr,rMrOrQrRr^rXrWráryr†r‡r˜r]rÚdeprecated_methodržr¤r¨r«r®r°r r´rÔr‡rmrOrOsC„ñó6ó-ò^!2òFð<€Hò+ò*!òò
 
?ðñóðð ×Ññ@.óð@.óD-ò^ò,    òð:ñóðò$ò>(òT$ò!ò)ò$
!ò ó'ñ à    ñ    %ó
 ð    %ò     %ò     )ò     (ñˆ{×"Ñ" MÔ2ò    ,ñˆ{×"Ñ" LÔ1ó    =ñ,ˆ{×"Ñ" HÔ-ó     7ñˆ{×"Ñ"Ð$6Ô7ó    =ñ(ˆ{×"Ñ" IÔ.ò    (ñˆ{×"Ñ" IÔ.ò    (ñ ò    ,ò -ò (ñˆ{×"Ñ" IÔ.ò    (óHóT[0ðzñ&óð&ðñ(óð(ò-ó "3ñHˆ{×"Ñ" MÔ2ó    ,ò6'ó0ð2€W×ÑÐ+<Ô=ò/ó>ð/ñ
 ò    7ò2 (ò    !ò     ò    òôr‡rOÚ_>r r´rÿr®rerúr¿rr«r^r°rÚržr¨cóB‡—eZdZdZd„Zd„Zd„Zd„Zd„Zdˆfd„    Z    ˆxZ
S)    rPaSame as subprocess.Popen, but in addition it provides all
    psutil.Process methods in a single class.
    For the following methods which are common to both classes, psutil
    implementation takes precedence:
 
    * send_signal()
    * terminate()
    * kill()
 
    This is done in order to avoid killing another process in case its
    PID has been reused, fixing BPO-6973.
 
      >>> import psutil
      >>> from subprocess import PIPE
      >>> p = psutil.Popen(["python", "-c", "print 'hi'"], stdout=PIPE)
      >>> p.name()
      'python'
      >>> p.uids()
      user(real=1000, effective=1000, saved=1000)
      >>> p.username()
      'giampaolo'
      >>> p.communicate()
      ('hi', None)
      >>> p.terminate()
      >>> p.wait(timeout=2)
      0
      >>>
    có†—tj|i|¤Ž|_|j|jjd¬«y)NT)r®)Ú
subprocessrPÚ_Popen__subprocr’r{©r“ÚargsÚkwargss   rmr”zPopen.__init__†s5€ô$×)Ñ)¨4Ð:°6Ñ:ˆŒØ 
‰
4—>‘>×%Ñ%°4ˆ
Õ8r‡cóx—tttt«ttj«z««Sri)rCrêÚdirrPrÆr³s rmÚ__dir__z Popen.__dir__s&€Ü”cœ#œe›*¤s¬:×+;Ñ+;Ó'<Ñ<Ó=Ó>Ð>r‡cóf—t|jd«r|jj«|S)NÚ    __enter__)rßrÇrÏr³s rmrÏzPopen.__enter__s%€Ü 4—>‘> ;Ô /Ø N‰N× $Ñ $Ô &؈ r‡có˜—t|jd«r|jj|i|¤ŽS|jr|jj    «|j
r|j
j    «    |j r|j j    «|j«y#|j«wxYw)NÚ__exit__)rßrÇrÑÚstdoutÚcloseÚstderrÚstdinr´rÈs   rmrÑzPopen.__exit__•s‹€Ü 4—>‘> :Ô .Ø*4—>‘>×*Ñ*¨DÐ;°FÑ;Ð ;à{Š{Ø— ‘ ×!Ñ!Ô#؏{Š{Ø— ‘ ×!Ñ!Ô#ð à—:’:Ø—J‘J×$Ñ$Ô&ð—    ‘    • ø—    ‘    • ús Â&B7Â7C    có䗠   tj||«S#t$rN    tj|j|«cYS#t$r|j›d|›}t|«d‚wxYwwxYw)Nz has no attribute )ÚobjectÚ__getattribute__ÚAttributeErrorrÇrÁ)r“rµrŽs   rmrØzPopen.__getattribute__¥sw€ð    4Ü×*Ñ*¨4°Ó6Ð 6øÜò    4ð 4Ü×.Ñ.¨t¯~©~¸tÓDÒDøÜ!ò 4ØŸ™Ð*Ð*<¸T¸HÐEÜ$ SÓ)¨tÐ3ð 4úð    4ús ‚˜    A/¢AÁA/Á'A+Á+A/có •—|jj|jjSt‰| |«}||j_|Sri)rÇÚ
returncodeÚsuperr´)r“rµrzrÁs   €rmr´z
Popen.wait¯sBø€Ø >‰>× $Ñ $Ð 0Ø—>‘>×,Ñ,Ð ,܉g‰l˜7Ó#ˆØ$'ˆ‰Ô!؈
r‡ri) rÃrÂr¼r½r”rÍrÏrÑrØr´Ú __classcell__)rÁs@rmrPrPhs+ø„ñò:9ò?òò
ò 4÷ñr‡rPcóJ—ttj««}|da|S)z&Return a list of current running PIDs.r)rCrxrRrü©rzs rmrRrR¼s%€ô ”×!Ñ!Ó#Ó
$€Cؐa‘&€KØ €Jr‡cóf—|dkry|dk(rtr |t«vStj|«S)z“Return True if given PID exists in the current process list.
    This is faster than doing "pid in psutil.pids()" and
    should be preferred.
    rF)rrRrxrQ)r{s rmrQrQÄs6€ð
 ˆQ‚wØØ     Š•eð ”d“fˆ}Ðä×%Ñ% cÓ*Ð*r‡c#óŠ‡ K—ˆ fd„}ˆ fd„}tj«Š tt««}t‰ j    ««}||z
}||z
}|D]
}||«Œ t
r1t
j «}td|›«||«t
rŒ1    tt‰ j««ttj|«j««z«}    |    D].\}}
    |
€||«}
||
j||¬«|
_|
–—Œ0    ‰ ay#t$r ||«YŒHwxYw#‰ awxYw­w)a£Return a generator yielding a Process instance for all
    running processes.
 
    Every new Process instance is only created once and then cached
    into an internal table which is updated every time this is used.
    Cache can optionally be cleared via `process_iter.cache_clear()`.
 
    The sorting order in which processes are yielded is based on
    their PIDs.
 
    *attrs* and *ad_value* have the same meaning as in
    Process.as_dict(). If *attrs* is specified as_dict() is called
    and the resulting dict is stored as a 'info' attribute attached
    to returned Process instance.
    If *attrs* is an empty list it will retrieve all process info
    (slow).
    có<•—t|«}|‰|j<|Sri)rOr{)r{rÚpmaps  €rmrzprocess_iter.<locals>.addîsø€Üs‹|ˆØˆˆTX‰X‰Øˆ r‡có*•—‰j|d«yri)rV)r{rãs €rmÚremovezprocess_iter.<locals>.removeósø€Ø ‰dÕr‡z+refreshing Process instance for reused PID N)rórô)Ú_pmapÚcopyrêrRÚkeysrrVr2rCrérÅÚdictÚfromkeysrúrÆr/) rórôrråÚaÚbÚnew_pidsÚ    gone_pidsr{rørrãs            @rmrSrSÚs/øèø€ô(ô
ô :‰:‹<€DÜ ŒD‹F‹ €AÜ ˆDI‰I‹KÓ€Aؐ1‰u€HؐA‘€IØòˆÙˆs ðå
Ü×ÑÓ ˆÜ Ð;¸C¸5ÐAÔBÙˆsŒ ö ð Ü ”D˜Ÿ™›Ó&¬¬d¯m©m¸HÓ.E×.KÑ.KÓ.MÓ)NÑNÓ OˆØò    ‰IˆCð ؐ<Ù˜s›8DØÐ$Ø $§ ¡ °5À8  Ó LD”IØ“
ñ     ð‰øô!ò ِs– ð ûð‰üsCƒBEÂAD<Ã7(D%ÄD<Ä"EÄ%D9Ä6D<Ä8D9Ä9D<Ä<EÅEcó*—tj«Sri)ræÚclearrÔr‡rmrŽrŽs €¤5§;¡;£=€r‡z$Clear process_iter() internal cache.cóÒ‡‡    —ˆˆ    fd„}||dk\sd|›}t|«‚t«Š    t|«}‰t‰«sd‰›d}t|«‚| t    «|z}|rX||dkrnP|D]C}dt |«z }|(t t    «z
|«}|dkrn|||«Œ;|||«ŒE|‰    z
}|rŒX|r|D] }||d«Œ |‰    z
}t‰    «t|«fS)a,Convenience function which waits for a list of processes to
    terminate.
 
    Return a (gone, alive) tuple indicating which processes
    are gone and which ones are still alive.
 
    The gone ones will have a new *returncode* attribute indicating
    process exit status (may be None).
 
    *callback* is a function which gets called every time a process
    terminates (a Process instance is passed as callback argument).
 
    Function will return as soon as all processes terminate or when
    *timeout* occurs.
    Differently from Process.wait() it will not raise TimeoutExpired if
    *timeout* occurs.
 
    Typical use case is:
 
     - send SIGTERM to a list of processes
     - give them some time to terminate
     - send SIGKILL to those ones which are still alive
 
    Example:
 
    >>> def on_terminate(proc):
    ...     print("process {} terminated".format(proc))
    ...
    >>> for p in procs:
    ...    p.terminate()
    ...
    >>> gone, alive = wait_procs(procs, timeout=3, callback=on_terminate)
    >>> for p in alive:
    ...     p.kill()
    có֕—    |j|¬«}|€|j«s$||_‰j|«‰    ‰|«yyy#tt
jf$rYywxYw)N)rµ)r´rÚrÛrr0rÆ)rrµrÛÚcallbackÚgones   €€rmÚ
check_gonezwait_procs.<locals>.check_gone9sqø€ð
    #ØŸ™¨7˜Ó3ˆJðÐ%¨T¯_©_Ô->à",”Ø—‘˜”ØÐ'Ù˜T•Nð(ð    .?øô¤
× 9Ñ 9Ð:ò    Ù ð    úsƒA Á A(Á'A(rz(timeout must be a positive integer, got z    callback z is not a callablegð?)r‹rêÚcallablerírcrîÚminré)
ÚprocsrµrórõrŽÚaliveÚdeadlinerÚ max_timeoutrôs
  `      @rmrTrTs)ù€õJ #ðР7¨a¢<Ø8¸¸    ÐBˆÜ˜‹oÐÜ ‹5€DÜ ‹J€EØÐ¤H¨XÔ$6ؘ(˜Ð%7Ð8ˆÜ˜‹nÐØÐÜ“8˜gÑ%ˆá
Ø Ð  7¨a¢<Ø Øò    .ˆDð¤ E£
Ñ*ˆKØÐ"ܘx¬&«(Ñ2°[ÓAØ˜a’<ÙÙ˜4 Õ)á˜4 Õ-ð    .𘑠ˆò% ñ( ðò     ˆDÙ t˜QÕ ð     à˜‘ ˆä ‹Jœ˜U› Ð $Ð$r‡Tcón—|rtj«}ntj«}||dkrd}|S)alReturn the number of logical CPUs in the system (same as
    os.cpu_count()).
 
    If *logical* is False return the number of physical cores only
    (e.g. hyper thread CPUs are excluded).
 
    Return None if undetermined.
 
    The return value is cached after first call.
    If desired cache can be cleared like this:
 
    >>> psutil.cpu_count.cache_clear()
    Nr)rxÚcpu_count_logicalÚcpu_count_cores)Úlogicalrzs  rmrZrZts8€ñÜ×+Ñ+Ó-‰ä×)Ñ)Ó+ˆØ
€˜3 š7ØˆØ €Jr‡cóV—|stj«Stj«S)aReturn system-wide CPU times as a namedtuple.
    Every CPU time represents the seconds the CPU has spent in the
    given mode. The namedtuple's fields availability varies depending on the
    platform:
 
     - user
     - system
     - idle
     - nice (UNIX)
     - iowait (Linux)
     - irq (Linux, FreeBSD)
     - softirq (Linux)
     - steal (Linux >= 2.6.11)
     - guest (Linux >= 2.6.24)
     - guest_nice (Linux >= 3.2.0)
 
    When *percpu* is True return a list of namedtuples for each CPU.
    First element of the list refers to first CPU, second element
    to second CPU and so on.
    The order of the list is consistent across calls.
    )rxrWÚ per_cpu_timesrAs rmrWrW‹s%€ñ, Ü×$Ñ$Ó&Ð&ä×(Ñ(Ó*Ð*r‡rAcóh—t|«}tr |t|dd«z}|t|dd«z}|S)zWGiven a cpu_time() ntuple calculates the total CPU time
    (including idle time).
    ÚguestrÚ
guest_nice)Úsumrrñ)ÚtimesÚtots  rmÚ _cpu_tot_timer¶s=€ô ˆe‹*€CÝ ð     Œwu˜g qÓ)Ñ)ˆØ Œwu˜l¨AÓ.Ñ.ˆØ €Jr‡cóZ—t|«}||jz}|t|dd«z}|S)zlGiven a cpu_time() ntuple calculates the busy CPU time.
    We do so by subtracting all idle CPU times.
    Úiowaitr)rÚidlerñ)rÚbusys  rmÚ_cpu_busy_timer És6€ô ˜Ó €D؈EJ‰JÑ€Dð    ŒGE˜8 QÓ 'Ñ'€DØ €Kr‡có—|j|jk(s    J||f«‚g}tjjD]8}t||«t||«z
}t    d|«}|j |«Œ:tj|ŽS)Nr)r|rxÚ    scputimesrñÚmaxr)Út1Út2Ú field_deltasÚfieldÚ field_deltas     rmÚ_cpu_times_deltasrÙsˆ€Ø :‰:˜Ÿ™Ò #Ð- b¨" XÓ-Ð #Ø€LÜ×&Ñ&×.Ñ.ò)ˆÜ˜b %Ó(¬7°2°uÓ+=Ñ=ˆ ô˜!˜[Ó)ˆ Ø×јKÕ(ð)ô ×  Ñ   ,Ð /Ð/r‡cóx—tj«j}|duxr|dkD}||dkrd|›d}t|«‚d„}|sd|r t    «}t j |«n!tj|«xs
t    «}t    «t|<||t|«Sg}|r"t    d¬«}t j |«n#tj|«xs t    d¬«}t    d¬«t|<t|t|«D]\}}    |j|||    ««Œ|S)    a¡Return a float representing the current system-wide CPU
    utilization as a percentage.
 
    When *interval* is > 0.0 compares system CPU times elapsed before
    and after the interval (blocking).
 
    When *interval* is 0.0 or None compares system CPU times elapsed
    since last call or module import, returning immediately (non
    blocking). That means the first time this is called it will
    return a meaningless 0.0 value which you should ignore.
    In this case is recommended for accuracy that this function be
    called with at least 0.1 seconds between calls.
 
    When *percpu* is True returns a list of floats representing the
    utilization as a percentage for each CPU.
    First element of the list refers to first CPU, second element
    to second CPU and so on.
    The order of the list is consistent across calls.
 
    Examples:
 
      >>> # blocking, system-wide
      >>> psutil.cpu_percent(interval=1)
      2.0
      >>>
      >>> # blocking, per-cpu
      >>> psutil.cpu_percent(interval=1, percpu=True)
      [2.0, 1.0]
      >>>
      >>> # non-blocking (percentage since last call)
      >>> psutil.cpu_percent(interval=None)
      2.9
      >>>
    Nr`rrartcóŽ—t||«}t|«}t|«}    ||z dz}t|d«S#t$rYywxYw)Nrfrr`)rrr rjrk)rrÚ times_deltaÚ    all_deltaÚ
busy_deltaÚ    busy_percs      rmÚ    calculatezcpu_percent.<locals>.calculatesY€Ü'¨¨BÓ/ˆ Ü! +Ó.ˆ    Ü# KÓ0ˆ
ð    'Ø# iÑ/°3Ñ6ˆIô˜ AÓ&Ð &øô!ò    Ùð    ús¤8¸    AÁATrA) r£Úcurrent_threadÚidentr‹rWr~rgÚ_last_cpu_timesÚgetÚ_last_per_cpu_timesÚzipr©
rlrBÚtidrmrŽrrrzÚtot1rs
          rmrXrXîs'€ôF ×
*€CؘtÐ#Ò6¨°3©€HØÐ ¨1¢ Ø.¨x¨j¸Ð:ˆÜ˜‹oÐò
'ñ Ù Ü“ˆBÜ J‰JxÕ  ä ×$Ñ$ SÓ)Ò8¬Y«[ˆBÜ(›{Œ˜ÑÙ˜œ_¨SÑ1Ó2Ð2ðˆÙ Ü DÔ)ˆDÜ J‰JxÕ  ä&×*Ñ*¨3Ó/ÒI´9ÀDÔ3IˆDÜ#,°DÔ#9Ô˜CѠܘ$Ô 3°CÑ 8Ó9ò    *‰FˆBØ J‰J‘y  RÓ(Õ )ð    *àˆ
r‡cóx—tj«j}|duxr|dkD}||dkrd|›d}t|«‚d„}|sd|r t    «}t j |«n!tj|«xs
t    «}t    «t|<||t|«Sg}|r"t    d¬«}t j |«n#tj|«xs t    d¬«}t    d¬«t|<t|t|«D]\}}    |j|||    ««Œ|S)    a·Same as cpu_percent() but provides utilization percentages
    for each specific CPU time as is returned by cpu_times().
    For instance, on Linux we'll get:
 
      >>> cpu_times_percent()
      cpupercent(user=4.8, nice=0.0, system=4.8, idle=90.5, iowait=0.0,
                 irq=0.0, softirq=0.0, steal=0.0, guest=0.0, guest_nice=0.0)
      >>>
 
    *interval* and *percpu* arguments have the same meaning as in
    cpu_percent().
    Nr`rrartcóô—g}t||«}t|«}dtd|«z }|D]:}||z}t|d«}t    td|«d«}|j |«Œ<t j|ŽS)NgY@rr`)rrrrjr÷rrxr)rrr•rrÚscalerÚ
field_percs        rmrz$cpu_times_percent.<locals>.calculateSs‡€ØˆÜ'¨¨BÓ/ˆ Ü! +Ó.ˆ    ð
œ˜A˜yÓ)Ñ)ˆØ&ò    $ˆKØ$ uÑ,ˆJܘz¨1Ó-ˆJäœS  jÓ1°5Ó9ˆJØ K‰K˜
Õ #ð     $ô ×$Ñ$ dÐ+Ð+r‡TrA) r£rrr‹rWr~rgÚ_last_cpu_times_2r!Ú_last_per_cpu_times_2r#rr$s
          rmrYrY@s(€ô ×
*€CؘtÐ#Ò6¨°3©€HØÐ ¨1¢ Ø.¨x¨l¸!Ð<ˆÜ˜‹oÐò,ñ$ Ù Ü“ˆBÜ J‰JxÕ  ä"×&Ñ& sÓ+Ò:¬y«{ˆBÜ!*£Ô˜#ÑÙ˜Ô.¨sÑ3Ó4Ð4ðˆÙ Ü DÔ)ˆDÜ J‰JxÕ  ä(×,Ñ,¨SÓ1ÒK´YÀdÔ5KˆDÜ%.°dÔ%;Ô˜cÑ"ܘ$Ô 5°cÑ :Ó;ò    *‰FˆBØ J‰J‘y  RÓ(Õ )ð    *àˆ
r‡có*—tj«S)zReturn CPU statistics.)rxr[rÔr‡rmr[r[{s€ä ×  Ñ  Ó "Ð"r‡Úcpu_freqcóv—tj«}|r|Stt|««}|dk(ry|dk(r|dSd\}}}d}|D]D}||jz }t
r|j €d}Œ'||j z }||jz }ŒF||z }|rdx}    }
n
||z }    ||z }
tj||    |
«S)a:Return CPU frequency as a namedtuple including current,
        min and max frequency expressed in Mhz.
 
        If *percpu* is True and the system supports per-cpu frequency
        retrieval (Linux only) a list of frequencies is returned for
        each CPU. If not a list with one element is returned.
        rNr)r`r`r`FT)
rxr.r€rîÚcurrentrr÷rrÚscpufreq) rBrzrdÚcurrsÚminsÚmaxsÚset_noneÚcpur0Úmin_Úmax_s            rmr.r.‚sހô×"Ñ"Ó$ˆÙ ؈JäœS ›X“ˆHؘ1Š}ØØ˜Q’ؘ1‘v à$1Ñ!t˜TØ Øò$CؘSŸ[™[Ñ(Eõ §¡ Ø#'˜Ø Ø˜CŸG™G‘ODؘCŸG™G‘O‘Dð$ð  (Ñ*áØ"&Ð&D™4à (™?DØ (™?Dä×'Ñ'¨°°tÓ<Ð<r‡Ú
getloadavgcóF—tj«}|ja|S)a€Return statistics about system memory usage as a namedtuple
    including the following fields, expressed in bytes:
 
     - total:
       total physical memory available.
 
     - available:
       the memory that can be given instantly to processes without the
       system going into swap.
       This is calculated by summing different memory values depending
       on the platform and it is supposed to be used to monitor actual
       memory usage in a cross platform fashion.
 
     - percent:
       the percentage usage calculated as (total - available) / total * 100
 
     - used:
        memory used, calculated differently depending on the platform and
        designed for informational purposes only:
        macOS: active + wired
        BSD: active + wired + cached
        Linux: total - free
 
     - free:
       memory not being used at all (zeroed) that is readily available;
       note that this doesn't reflect the actual memory available
       (use 'available' instead)
 
    Platform-specific fields:
 
     - active (UNIX):
       memory currently in use or very recently used, and so it is in RAM.
 
     - inactive (UNIX):
       memory that is marked as not used.
 
     - buffers (BSD, Linux):
       cache for things like file system metadata.
 
     - cached (BSD, macOS):
       cache for various things.
 
     - wired (macOS, BSD):
       memory that is marked to always stay in RAM. It is never moved to disk.
 
     - shared (BSD):
       memory that may be simultaneously accessed by multiple processes.
 
    The sum of 'used' and 'available' does not necessarily equal total.
    On Windows 'available' and 'free' are the same.
    )rxrUrr~rßs rmrUrU½s!€ôj ×
&€Cà—I‘I€MØ €Jr‡có*—tj«S)aåReturn system swap memory statistics as a namedtuple including
    the following fields:
 
     - total:   total swap memory in bytes
     - used:    used swap memory in bytes
     - free:    free swap memory in bytes
     - percent: the percentage usage
     - sin:     no. of bytes the system has swapped in from disk (cumulative)
     - sout:    no. of bytes the system has swapped out from disk (cumulative)
 
    'sin' and 'sout' on Windows are meaningless and always set to 0.
    )rxrVrÔr‡rmrVrVøs€ô × "Ñ "Ó $Ð$r‡có,—tj|«S)z£Return disk usage statistics about the given *path* as a
    namedtuple including total, used and free space expressed in bytes
    plus the percentage usage.
    )rxrb)r s rmrbrb s€ô
× !Ñ ! $Ó 'Ð'r‡có,—tj|«S)a3Return mounted partitions as a list of
    (device, mountpoint, fstype, opts) namedtuple.
    'opts' field is a raw string separated by commas indicating mount
    options which may vary depending on the platform.
 
    If *all* parameter is False return physical devices only and ignore
    all others.
    )rxra)Úalls rmraras€ô × &Ñ & sÓ +Ð+r‡cóF—tr t|¬«ni}tjdi|¤Ž}|s|riSdS|r t    |d«}t tdt j«}|r"|j«D] \}}||Ž||<Œ|S|d„t|j«ŽD«ŽS)aØReturn system disk I/O statistics as a namedtuple including
    the following fields:
 
     - read_count:  number of reads
     - write_count: number of writes
     - read_bytes:  number of bytes read
     - write_bytes: number of bytes written
     - read_time:   time spent reading from disk (in ms)
     - write_time:  time spent writing to disk (in ms)
 
    Platform specific:
 
     - busy_time: (Linux, FreeBSD) time spent doing actual I/Os (in ms)
     - read_merged_count (Linux): number of merged reads
     - write_merged_count (Linux): number of merged writes
 
    If *perdisk* is True return the same information for every
    physical disk installed on the system as a dictionary
    with partition names as the keys and the namedtuple
    described above as the values.
 
    If *nowrap* is True it detects and adjust the numbers which overflow
    and wrap (restart from 0) and add "old value" to "new value" so that
    the returned numbers will always be increasing or remain the same,
    but never decrease.
    "disk_io_counters.cache_clear()" can be used to invalidate the
    cache.
 
    On recent Windows versions 'diskperf -y' command may need to be
    executed first otherwise this function won't find any disk.
    )ÚperdiskNúpsutil.disk_io_countersÚsdiskioc3ó2K—|]}t|«–—Œy­wri)r)rkrŒs  rmrnz#disk_io_counters.<locals>.<genexpr>Msèø€Ò;˜q”C˜—FÑ;ùrorÔ) rrérxr`Ú _wrap_numbersrñrrBrÅr#Úvalues)r@ÚnowraprÊÚrawdictr–ÚdiskÚfieldss       rmr`r`!s£€õ@',ŒT˜'Õ "°€FÜ×*Ñ*Ñ4¨VÑ4€GÙ ÙˆrÐ& $Ð&Ù Ü Ð)BÓCˆÜ    ”˜i¬¯©Ó    9€BÙØ#ŸM™M›Oò    (‰LˆD&Ù ˜KˆGDŠMð    (àˆáÑ;¤C¨¯©Ó)9Ð$:Ô;Ð<Ð<r‡rAzClears nowrap argument cachecó<—tj«}|s|riSdS|r t|d«}|r/|j«D]\}}t    j
|Ž||<Œ|St    j
t |j«ŽDcgc] }t|«‘Œc}ŽScc}w)acReturn network I/O statistics as a namedtuple including
    the following fields:
 
     - bytes_sent:   number of bytes sent
     - bytes_recv:   number of bytes received
     - packets_sent: number of packets sent
     - packets_recv: number of packets received
     - errin:        total number of errors while receiving
     - errout:       total number of errors while sending
     - dropin:       total number of incoming packets which were dropped
     - dropout:      total number of outgoing packets which were dropped
                     (always 0 on macOS and BSD)
 
    If *pernic* is True return the same information for every
    network interface installed on the system as a dictionary
    with network interface names as the keys and the namedtuple
    described above as the values.
 
    If *nowrap* is True it detects and adjust the numbers which overflow
    and wrap (restart from 0) and add "old value" to "new value" so that
    the returned numbers will always be increasing or remain the same,
    but never decrease.
    "net_io_counters.cache_clear()" can be used to invalidate the
    cache.
    Núpsutil.net_io_counters)    rxr\rDrÅrÚsnetior#rEr)ÚpernicrFrGÚnicrIrŒs      rmr\r\[s’€ô4×)Ñ)Ó+€GÙ ÙˆrÐ% Ð%Ù Ü Ð)AÓBˆÙ Ø"Ÿ=™=›?ò    3‰KˆCÜ"Ÿ>™>¨6Ð2ˆGCŠLð    3àˆä~‰~´°W·^±^Ó5EÐ0FÖG¨1¤ A¥ÒGÐHÐHùÒGsÂBrKcóB—t|«tj|«S)a˜Return system-wide socket connections as a list of
    (fd, family, type, laddr, raddr, status, pid) namedtuples.
    In case of limited privileges 'fd' and 'pid' may be set to -1
    and None respectively.
    The *kind* parameter filters for connections that fit the
    following criteria:
 
    +------------+----------------------------------------------------+
    | Kind Value | Connections using                                  |
    +------------+----------------------------------------------------+
    | inet       | IPv4 and IPv6                                      |
    | inet4      | IPv4                                               |
    | inet6      | IPv6                                               |
    | tcp        | TCP                                                |
    | tcp4       | TCP over IPv4                                      |
    | tcp6       | TCP over IPv6                                      |
    | udp        | UDP                                                |
    | udp4       | UDP over IPv4                                      |
    | udp6       | UDP over IPv6                                      |
    | unix       | UNIX socket (both UDP and TCP protocols)           |
    | all        | the sum of all the possible families and protocols |
    +------------+----------------------------------------------------+
 
    On macOS this function requires root privileges.
    )rrxr]rs rmr]r]ˆs€ô4TÔÜ × &Ñ & tÓ ,Ð,r‡có|—tj«}|jd„¬«tjt
«}|D]í\}}}}}}    t j|«}|tjk(r;trdnd}|j|«dkr||›dz }|j|«dkrŒtj|||||«}    trM|t j t j"hvr+    tj$|    «}||    j'|¬
«    ||j-|    «Œït/|«S#t$rStr|dk(rtj}n3ttd«r#|tjk(rtj}YŒ6wxYw#t($r}
t+|
«Yd    }
~
Œ™d    }
~
wwxYw) a*Return the addresses associated to each NIC (network interface
    card) installed on the system as a dictionary whose keys are the
    NIC names and value is a list of namedtuples for each address
    assigned to the NIC. Each namedtuple includes 5 fields:
 
     - family: can be either socket.AF_INET, socket.AF_INET6 or
               psutil.AF_LINK, which refers to a MAC address.
     - address: is the primary address and it is always set.
     - netmask: and 'broadcast' and 'ptp' may be None.
     - ptp: stands for "point to point" and references the
            destination address on a point to point interface
            (typically a VPN).
     - broadcast: and *ptp* are mutually exclusive.
 
    Note: you can have more than one address of the same family
    associated with each interface.
    có —|dS)NrrÔ©rŒs rmrŽznet_if_addrs.<locals>.<lambda>¹s
€˜q ™t€r‡)ÚkeyéÿÿÿÿrNú:ú-éÚ00N)Ú    broadcast)rxr^Úsortr½rUréÚsocketÚ AddressFamilyr‹r,rNrßrÚcountrÚsnicaddrÚAF_INETÚAF_INET6Úbroadcast_addrÚ_replaceÚ    Exceptionr2rré) ÚrawlistrzrµÚfamÚaddrÚmaskrYÚptpÚ    separatorr–r¯s            rmr^r^¦s”€ô$×&Ñ&Ó(€GØ ‡LL‘^€LÔ$Ü
!¤$Ó
'€CØ18ò#Ñ-ˆˆc4˜˜y¨#ð     *Ü×&Ñ& sÓ+ˆCð ”+×%Ñ%Ò %õ %™¨#ˆIØ—*‘*˜YÓ'¨!Ò+ؘ9˜+ RÐ(Ñ(ð—*‘*˜YÓ'¨!Ó+ô× Ñ ˜c 4¨¨y¸#Ó >ˆõ sœvŸ~™~¬v¯©Ð?Ñ?ð 5Ü#×2Ñ2°2Ó6    ðÐ(Ø—K‘K¨)KÕ4à ˆD‰    ×јÕðG#ôJ ‹9ÐøôEò        *ݘ3 "š9Ü!×)Ñ)‘äœ  YÔ/°C¼;×;NÑ;NÒ4Nô
"×)Ñ)úð        *ûô4ò ܐc—
‘
ûð ús+ÁD>Ã3FÄ>AFÆFÆ    F;Æ& F6Æ6F;có*—tj«S)aReturn information about each NIC (network interface card)
    installed on the system as a dictionary whose keys are the
    NIC names and value is a namedtuple with the following fields:
 
     - isup: whether the interface is up (bool)
     - duplex: can be either NIC_DUPLEX_FULL, NIC_DUPLEX_HALF or
               NIC_DUPLEX_UNKNOWN
     - speed: the NIC speed expressed in mega bits (MB); if it can't
              be determined (e.g. 'localhost') it will be set to 0.
     - mtu: the maximum transmission unit expressed in bytes.
    )rxr_rÔr‡rmr_r_ãs€ô × #Ñ #Ó %Ð%r‡Úsensors_temperaturesc    ó„‡—ˆfd„}tjt«}tj«}|j «D]p\}}|sŒ    |j d«\}}}}    ||«}||«}||    «}    |r|    s|}    n|    r|s|    }||jtj||||    ««|rŒhŒrt|«S)a<Return hardware temperatures. Each entry is a namedtuple
        representing a certain hardware sensor (it may be a CPU, an
        hard disk or something else, depending on the OS and its
        configuration).
        All temperatures are expressed in celsius unless *fahrenheit*
        is set to True.
        có:•—|‰rt|«dzdz dzS|Sy)Né    rWé )r€)ÚnÚ
fahrenheits €rmÚconvertz%sensors_temperatures.<locals>.convert    s,ø€Øˆ}Ù2<œ˜a› 1™  qÑ(¨BÑ.ÐCÀ!ÐCðr‡r) r½rUrérxrkrÅrVrrÚshwtempré)
rqrrrzrGrµrEÚlabelr0ÚhighÚcriticals
`         rmrkrkúsÁø€ô    Dô×%Ñ%¤dÓ+ˆÜ×2Ñ2Ó4ˆà#ŸM™M›Oò    ‰LˆD&ÚØ17·±¸A³Ñ.w  hÙ! 'Ó*Ù˜t“}Ù" 8Ó,á¡Ø#‘HÙ¡dØ#DàD‘    × Ñ Ü—O‘O E¨7°D¸(ÓCôóð    ô C‹yÐr‡Ú sensors_fanscó*—tj«S)z¢Return fans speed. Each entry is a namedtuple
        representing a certain hardware sensor.
        All speed are expressed in RPM (rounds per minute).
        )rxrwrÔr‡rmrwrw"    s€ô
×'Ñ'Ó)Ð)r‡Úsensors_batterycó*—tj«S)ažReturn battery information. If no battery is installed
        returns None.
 
         - percent: battery power left as a percentage.
         - secsleft: a rough approximation of how many seconds are left
                     before the battery runs out of power. May be
                     POWER_TIME_UNLIMITED or POWER_TIME_UNLIMITED.
         - power_plugged: True if the AC power cable is connected.
        )rxryrÔr‡rmryry/    s€ô×*Ñ*Ó,Ð,r‡có*—tj«S)a!Return the system boot time expressed in seconds since the epoch
    (seconds since January 1, 1970, at midnight UTC). The returned
    value is based on the system clock, which means it may be affected
    by changes such as manual adjustments or time synchronization (e.g.
    NTP).
    )rxrdrÔr‡rmrdrdC    s€ô ×  Ñ  Ó "Ð"r‡có*—tj«S)a„Return users currently connected on the system as a list of
    namedtuples including the following fields.
 
     - user: the name of the user
     - terminal: the tty or pseudo-tty associated with the user, if any.
     - host: the host name associated with the entry, if any.
     - started: the creation time as a floating point number expressed in
       seconds since the epoch.
    )rxrcrÔr‡rmrcrcM    s€ô × Ñ Ó Ðr‡có*—tj«S)zjReturn a generator yielding a WindowsService instance for all
        Windows services installed.
        )rxÚwin_service_iterrÔr‡rmr~r~a    s€ô×+Ñ+Ó-Ð-r‡có,—tj|«S)zjGet a Windows service by *name*.
        Raise NoSuchProcess if no service with such name exists.
        )rxÚwin_service_get)rµs rmr€r€g    s€ô×*Ñ*¨4Ó0Ð0r‡có—ddl}t|«|j_tj
j t|««y)zZEnable or disable PSUTIL_DEBUG option, which prints debugging
    messages to stderr.
    rN)Úpsutil._commonÚboolrÚ PSUTIL_DEBUGrxr™Ú    set_debug)r*Úpsutils  rmÚ
_set_debugr‡q    s/€óä"& u£+€F‡NNÔÜ×Ñ×Ñœt E›{Õ+r‡r·r¹r¶)NF)FTrº)³r½r½rÀrÚ    functoolsr—r¦r[rÆÚsysr£r~rrrrrrrrrr    r
r r r rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4rDÚ PROCFS_PATHr5rxr6r7r8r9r:Ú_psutil_windowsr;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKÚplatformrŽròÚ__all__ÚextendÚ__extra__all__rßrOrfÚglobalsÚ_globalsrrÌr ÚisupperrñrrNÚ
__author__rMr‰ÚsplitrLrcr~rür×rªrjÚreplacer™rurÄrér!rsrÈÚwhatrvr|r†rrèrPrRrQrærêrrSÚ cache_clearrTrZrWrrr rcr"rr rrXrçr+r,rYr[r.r9rUrVrbrar`Úpartialr\r]r^r_rkrwryrdrcr~r€r‡rRs0rmú<module>r™sBðñ
ó ÛÛÛÛ    Û Û ÛÛ
ÛÛ ðÛõÝÝÝÝ$Ý!Ý%Ý#Ý#Ý"Ý ÝÝ"Ý"Ý#ÝÝÝÝÝ$Ý$Ý'ÝÝÝÝ'Ý)Ý Ý&Ý Ý"Ý"Ý#Ý$Ý#Ý(Ý#Ý"Ý"ÝÝÝ!ÝÝ"Ý#Ý"ÝÝ+Ý2áð€Kå)Ý)Ý+Ý+Þ)á Ý+Ý<Ý<Ý4Ý4Ý6Ý8Ý+Ý'Ý&Ý)Þ*á
Þ'áÞ'á
Ý)Ý$Ý#ðKáÝ'ðKð c—l‘l^Ð#4Ð
5€CÙ
˜cÓ
"Ð"ò- €ðb‡ˆ{×)Ñ)Ô*ñ ˆ;× Ñ  Ô)åá‹y€HØ €Eِ]Ó#ò"ˆØ × Ñ ˜FÕ #¨¯ © ­Ù% m°UÓ;ˆHU‰OØ N‰N˜5Õ !ð"ð    %à
€à  €
Ø€ ÙÑ@¨×):Ñ):¸3Ó)?Ô@Ó@€ á    { D§I¡IÓ    .€Ø€ Ø€ Ù ‹H€    ñ€{×ј3 Ó#Ó$©Ø×ѐi ó)òð ˜{×/Ñ/×8Ñ8Ð;¸=Ð
I€CØÐ ;Ñ;€CÙˆ{×Ñ Ô+Ø H‰H‘T™#˜k×.Ñ.×6Ñ6Ó7Ó8Ó 9ˆØ A3l ; -¨qÐ1Ñ1‰à Ð" ; -¨qÐ1Ñ1ˆÙ Ø×ÑØØ/ó €Dð
Ð FÀtÀfÐ MÑM€CØÐ >Ñ>€CÙ
cÓ
Ðñ ˆ;˜
Ô#à×$Ò$Iò
ò?ò÷wñwñz!7‹|öØ
 1§<¡<°Õ#4¸ð ò: ‚AòÐôLˆGôLòhò+ð$     €Ù‹u€ ó3ñl1€ ÔØ#I€ ×ÒÔ óX%ó@ó.+ð8Ø/y×/Ò/Ó1×7Ò7¹»ÐE€Oð
à ˆ    × Ò Ó"×(Ò(©)¸4Ô*@ðÐòò& ò 0ó*Ið\$×(Ò(Ó*ÐØ+×0Ò0Ó2Ðó8òv#ñ
 ˆ;˜
Ô#ó&=ðP ‡NN:Ôñ ˆ2ˆ|Ô¡¨ °\Ô Bñˆr<Ô Ø—]’]‰
à ×+Ò+ˆ
à ‡NN<Ô ò8òv %ò*(ó    ,ó,=ð^ 1˜y×0Ò0Ø×ÒÐ8ó ÐÔð(FÐ×ÒÔ$ó$IðN0˜i×/Ò/Ø×ÒÐ7ó€Ôð'E€×ÒÔ#ó-ò<:òz &ñ* ˆ;Ð.Ô/ó ðD ‡NNÐ)Ô*ñ ˆ;˜Ô'ò*ð ‡NN>Ô"ñ ˆ;Ð)Ô*ò
-ð ‡NNÐ$Ô%ò#ò
ñ$ ò.ò 1ò,ñøðqJòØ
ƒCðüòn)øð^
òàƒOðûðòàÓðúsG°X8Ï4YÐ YÐYÑ$Y Ò&YØ8YÙYÙ YÙYÙY$Ù#Y$