/usr/lib64/python2.6/site-packages/psutil
NameSizeModeActions
error.py6110644editdlrm
error.pyc6200644editdlrm
error.pyo6200644editdlrm
_common.py59630644editdlrm
_common.pyc72880644editdlrm
_common.pyo72880644editdlrm
_compat.py96050644editdlrm
_compat.pyc99380644editdlrm
_compat.pyo99380644editdlrm
_error.py20310644editdlrm
_error.pyc30730644editdlrm
_error.pyo30730644editdlrm
_psbsd.py119490644editdlrm
_psbsd.pyc139600644editdlrm
_psbsd.pyo139600644editdlrm
_pslinux.py387900644editdlrm
_pslinux.pyc327710644editdlrm
_pslinux.pyo327270644editdlrm
_psmswindows.py161250644editdlrm
_psmswindows.pyc175780644editdlrm
_psmswindows.pyo175780644editdlrm
_psosx.py101000644editdlrm
_psosx.pyc126700644editdlrm
_psosx.pyo126700644editdlrm
_psposix.py38540644editdlrm
_psposix.pyc37830644editdlrm
_psposix.pyo37420644editdlrm
__init__.py493080644editdlrm
__init__.pyc469940644editdlrm
__init__.pyo469940644editdlrm
Edit: /usr/lib64/python2.6/site-packages/psutil/_psosx.pyc (12670B)
Ñò éíòRc@spdZddkZddkZddkZddkZddkZddkZddklZddk l Z l Z l Z ddk lZlZddkTgZyeiƒZWn)ej odZeideƒnXyeiƒZWn)ej odZeideƒnXyeiƒd ZWn)ej odZeid eƒnXeid ƒZed d ƒZeiZeddiddddddddgƒƒZ d„Z!d„Z"d„Z#d„Z$e%d„Z&d„Z'ei(Z(ei)Z)ei*Z*ei+Z,ei-Z.d„Z/he0ei16e2ei36e4ei56e6ei76e8ei96Z:de;fd „ƒYZ<dS(!sOSX platform implementation.iÿÿÿÿN(t_psposix(t AccessDeniedt NoSuchProcesstTimeoutExpired(t namedtupletwraps(t*s&couldn't determine platform's NUM_CPUSs'couldn't determine platform's BOOT_TIMEis*couldn't determine platform's TOTAL_PHYMEMt SC_PAGE_SIZEtcputimessuser nice system idletvmemt ttotalt availabletpercenttusedtfreetactivetinactivetwiredc Csktiƒ\}}}}}||}|||}t|||ddƒ}t||||||||ƒS(s&System virtual memory as a namedtuple.t_roundi(t _psutil_osxtget_virtual_memt usage_percenttnt_virtmem_info(R RRRRtavailRR ((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytvirtual_memory;s  cCsItiƒ\}}}}}t||ddƒ}t||||||ƒS(s=Swap system memory as a (total, used, free, sin, sout) tuple.Ri(Rt get_swap_memRtnt_swapmeminfo(R RRtsintsoutR ((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyt swap_memoryDscCs+tiƒ\}}}}t||||ƒS(s(Return system CPU times as a namedtuple.(Rtget_system_cpu_timest_cputimes_ntuple(tusertnicetsystemtidle((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyRJscCsUg}xHtiƒD]:}|\}}}}t||||ƒ}|i|ƒqW|S(s(Return system CPU times as a named tuple(Rtget_system_per_cpu_timesR tappend(trettcpu_tR!R"R#R$titem((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyR%Os c Cs¬g}tiƒ}x“|D]‹}|\}}}}|djo d}n|p3tii|ƒ ptii|ƒ oqq‚nt||||ƒ}|i|ƒqW|S(Ntnonet(Rtget_disk_partitionstostpathtisabstexistst nt_partitionR&( talltretlistt partitionst partitiontdevicet mountpointtfstypetoptstntuple((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytdisk_partitionsXs    cCs‹g}tiƒ}xr|D]j}|\}}}}|djoqn|pqnt||pd|pd|ƒ}|i|ƒqW|S(Nt~(Rtget_system_userstnt_usertNoneR&(R3trawlistR)R!tttythostnamettstamptnt((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyR=gs  #cstˆƒ‡fd†ƒ}|S(s`Decorator which translates bare OSError exceptions into NoSuchProcess and AccessDenied. cs¢yˆ|||ŽSWn‡tj o{tiƒd}|itijot|i|iƒ‚n|ititi fjot |i|iƒ‚n‚nXdS(Ni( tOSErrortsystexc_infoterrnotESRCHRtpidt _process_nametEPERMtEACCESR(tselftargstkwargsterr(tfun(s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytwrappers(R(RRRS((RRs3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytwrap_exceptions}s tProcesscBs¯eZdZddgZd„Zed„ƒZed„ƒZed„ƒZed„ƒZ ed„ƒZ ed „ƒZ ed „ƒZ ed „ƒZ ed „ƒZed dƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZedd„ƒZed„ƒZed!d„ƒZed„ƒZed„ƒZed„ƒZed„ƒZeddƒZeddƒZ ed „ƒZ!RS("s1Wrapper class around underlying C implementation.RJRKcCs||_d|_dS(N(RJR?RK(RNRJ((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyt__init__œs cCsti|iƒS(s4Return process name as a string of limited len (15).(Rtget_process_nameRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyRW scCsti|iƒS(N(Rtget_process_exeRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyRX¥scCs9t|iƒpt|i|iƒ‚nti|iƒS(s.Return process cmdline as a list of arguments.(t pid_existsRJRRKRtget_process_cmdline(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyRZ©scCsti|iƒS(sReturn process parent pid.(Rtget_process_ppidRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyR[°scCsti|iƒS(N(Rtget_process_cwdRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyR\µscCs+ti|iƒ\}}}t|||ƒS(N(Rtget_process_uidsRJtnt_uids(RNtrealt effectivetsaved((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyR]¹scCs+ti|iƒ\}}}t|||ƒS(N(Rtget_process_gidsRJtnt_gids(RNR_R`Ra((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyRb¾scCsEti|iƒ}tiƒ}y ||SWntj odSXdS(N(Rtget_process_tty_nrRJRt_get_terminal_maptKeyErrorR?(RNttty_nrttmap((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytget_process_terminalÃs   cCs)ti|iƒd \}}t||ƒS(s2Return a tuple with the process' RSS and VMS size.i(Rtget_process_memory_infoRJt nt_meminfo(RNtrsstvms((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytget_memory_infoÌstmeminfosrss vms pfaults pageinscCs<ti|iƒ\}}}}|i|||t|tƒS(s2Return a tuple with the process' RSS and VMS size.(RRjRJt _nt_ext_memt _PAGESIZE(RNRlRmtpfaultstpageins((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytget_ext_memory_infoÔs cCs%ti|iƒ\}}t||ƒS(N(Rtget_process_cpu_timesRJt nt_cputimes(RNR!R#((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyt get_cpu_timesÜscCsti|iƒS(sTReturn the start time of the process as a number of seconds since the epoch.(Rtget_process_create_timeRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyRxáscCstti|iƒŒS(N(tnt_ctxswRtget_process_num_ctx_switchesRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytget_num_ctx_switchesçscCsti|iƒS(s6Return the number of threads belonging to the process.(Rtget_process_num_threadsRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyR|ëscCsu|idjogSg}ti|iƒ}xA|D]9\}}t|ƒo t||ƒ}|i|ƒq4q4W|S(sReturn files opened by process.i(RJRtget_process_open_filest isfile_strictt nt_openfileR&(RNtfilesR@R.tfdR:((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytget_open_filesðs  tinetc Csž|tjoDtd|dig}tD]}|t|ƒq'~ƒfƒ‚nt|\}}ti|i||ƒ}g}|D]}|t|Œq„~S(sXReturn etwork connections opened by a process as a list of namedtuples. s+invalid %r kind argument; choose between %ss, (t conn_tmapt ValueErrortjointreprRtget_process_connectionsRJt nt_connection( RNtkindt_[1]txtfamiliesttypesR't_[2]tconn((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytget_connectionsýs  >cCs%|idjodSti|iƒS(Ni(RJRtget_process_num_fds(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyt get_num_fds scCsFyti|i|ƒSWn(tj ot|i|iƒ‚nXdS(N(Rtwait_pidRJRRK(RNttimeout((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyt process_waitscCsti|iƒS(N(t _psutil_posixt getpriorityRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytget_process_nicescCsti|i|ƒS(N(R—t setpriorityRJ(RNtvalue((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytset_process_nicescCs5ti|iƒ}|tjo t|StddƒS(Niÿÿÿÿt?(Rtget_process_statusRJt _status_maptconstant(RNtcode((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyRžs  cCsUti|iƒ}g}x6|D].\}}}t|||ƒ}|i|ƒqW|S(s6Return the number of threads belonging to the process.(Rtget_process_threadsRJt nt_threadR&(RNR@R3t thread_idtutimetstimeR:((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyR¢%stmmaps7path rss private swapped dirtied ref_count shadow_depthsBaddr perms path rss private swapped dirtied ref_count shadow_depthcCsti|iƒS(N(Rtget_process_memory_mapsRJ(RN((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytget_memory_maps4sN("t__name__t __module__t__doc__t __slots__RVRTRWRXRZR[R\R]RbRiRnRRpRtRwRxR{R|R‚R‘R“R?R–R™RœRžR¢tnt_mmap_groupedt nt_mmap_extR©(((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pyRU—sB        (=R¬RHR-RFtwarningsRR—tpsutilRt psutil._errorRRRtpsutil._compatRRtpsutil._commont__extra__all__t get_num_cpustNUM_CPUSt ExceptionR?twarntRuntimeWarningtget_system_boot_timet BOOT_TIMERt TOTAL_PHYMEMtsysconfRqR R†RRRRR%tFalseR;R=t get_pid_listRYtget_disk_usagetget_network_io_counterstnetwork_io_counterstget_disk_io_counterstdisk_io_countersRTt STATUS_IDLEtSIDLtSTATUS_RUNNINGtSRUNtSTATUS_SLEEPINGtSSLEEPtSTATUS_STOPPEDtSSTOPt STATUS_ZOMBIEtSZOMBRŸtobjectRU(((s3/usr/lib64/python2.6/site-packages/psutil/_psosx.pytsj