/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/_psbsd.pyo (13960B)
Ñò éíòRc!@s³dZddkZddkZddkZddkZddkZddkZddklZddk l Z l Z l Z ddk lZlZddkTgZyeiƒZWn)ej odZeideƒnXyeiƒdZWn)ej odZeid eƒnXyeiƒZWn)ej odZeid eƒnXeid ƒZed d ƒZeiZeddidddddddddddg ƒƒZ d„Z!d„Z"d„Z#d„Z$e%edƒp d „Z$ne&e$_'e&d!„Z(d"„Z)ei*Z*ei+Z+ei,Z,ei-Z.ei/Z0d#„Z1he2ei36e4ei56e6ei76e8ei96e:ei;6e<ei=6e>ei?6Z@d$eAfd%„ƒYZBdS(&s FreeBSD platform implementation.iÿÿÿÿN(t_psposix(t AccessDeniedt NoSuchProcesstTimeoutExpired(t namedtupletwraps(t*s&couldn't determine platform's NUM_CPUSis*couldn't determine platform's TOTAL_PHYMEMs'couldn't determine platform's BOOT_TIMEt SC_PAGE_SIZEtcputimessuser nice system idle irqtvmemt ttotalt availabletpercenttusedtfreetactivetinactivetbufferstcachedtsharedtwiredc Cs‡tiƒ}|\}}}}}}}}|||} |||} t|| |ddƒ} t|| | | |||||||ƒ S(s&System virtual memory as a namedutple.t_roundi(t _psutil_bsdtget_virtual_memt usage_percenttnt_virtmem_info( tmemR RRRRRRRtavailRR ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytvirtual_memory?s c Cshg}tiƒD]}||tq~\}}}}}t||ddƒ}t||||||ƒS(s@System swap memory as (total, used, free, sin, sout) namedtuple.Ri(Rt get_swap_memt _PAGESIZERtnt_swapmeminfo(t_[1]txR RRtsintsoutR ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyt swap_memoryIs:cCs1tiƒ\}}}}}t|||||ƒS(s,Return system per-CPU times as a named tuple(Rtget_system_cpu_timest_cputimes_ntuple(tusertnicetsystemtidletirq((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyR&PscCs[g}xNtiƒ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+R,titem((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyR-Us R-cCs?tdjotgStiotdƒ‚ntt_tgS(Nis&supported only starting from FreeBSD 8(tNUM_CPUSR&R-t __called__tNotImplementedErrortTrue(((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyR-fs    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/_psbsd.pytdisk_partitionsos    cCsvg}tiƒ}x]|D]U}|\}}}}|djoqnt||pd||ƒ}|i|ƒqW|S(Nt~(Rtget_system_userstnt_usertNoneR.(R?trawlistR1R(tttythostnamettstamptnt((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRI~s  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/_psbsd.pytwrapper”s(R(R^R_((R^s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytwrap_exceptionss tProcesscBseZdZddgZd„Zed„ƒZed„ƒZed„ƒZed„ƒZ ed„ƒZ e e d ƒoed „ƒZ ned „ƒZed „ƒZed „ƒZed„ƒZeddƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZedd„ƒZed%d„ƒZed„ƒZed„ƒZed„ƒZ ed„ƒZ!edd ƒZ"edd!ƒZ#ed"„ƒZ$e e d#ƒp%d$„Z%e%Ze%Z e%Z$e%ZnRS(&s1Wrapper class around underlying C implementation.RVRWcCs||_d|_dS(N(RVRKRW(RZRV((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyt__init__±s cCsti|iƒS(s4Return process name as a string of limited len (15).(Rtget_process_nameRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRcµscCsti|iƒS(s#Return process executable pathname.(Rtget_process_exeRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRdºscCsti|iƒS(s.Return process cmdline as a list of arguments.(Rtget_process_cmdlineRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRe¿scCsEti|iƒ}tiƒ}y ||SWntj odSXdS(N(Rtget_process_tty_nrRVRt_get_terminal_maptKeyErrorRK(RZttty_nrttmap((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytget_process_terminalÄs   cCsti|iƒS(sReturn process parent pid.(Rtget_process_ppidRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRlÍstget_process_cwdcCsti|iƒpdS(s)Return process current working directory.N(RRmRVRK(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRmÔscCs+ti|iƒ\}}}t|||ƒS(s*Return real, effective and saved user ids.(Rtget_process_uidsRVtnt_uids(RZtrealt effectivetsaved((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRnÛscCs+ti|iƒ\}}}t|||ƒS(s+Return real, effective and saved group ids.(Rtget_process_gidsRVtnt_gids(RZRpRqRr((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRsáscCs%ti|iƒ\}}t||ƒS(s3return a tuple containing process user/kernel time.(Rtget_process_cpu_timesRVt nt_cputimes(RZR(R*((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyt get_cpu_timesçscCs)ti|iƒd \}}t||ƒS(s2Return a tuple with the process' RSS and VMS size.i(Rtget_process_memory_infoRVt nt_meminfo(RZtrsstvms((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytget_memory_infoístmeminfosrss vms text data stackcCs|iti|iƒŒS(N(t _nt_ext_memRRxRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytget_ext_memory_infoõscCsti|iƒS(sTReturn the start time of the process as a number of seconds since the epoch.(Rtget_process_create_timeRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyR€ùscCsti|iƒS(s6Return the number of threads belonging to the process.(Rtget_process_num_threadsRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRÿscCstti|iƒŒS(N(tnt_ctxswRtget_process_num_ctx_switchesRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytget_num_ctx_switchesscCsti|iƒS(s=Return the number of file descriptors opened by this process.(Rtget_process_num_fdsRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyt get_num_fdsscCsUti|iƒ}g}x6|D].\}}}t|||ƒ}|i|ƒqW|S(s6Return the number of threads belonging to the process.(Rtget_process_threadsRVt nt_threadR.(RZRLR?t thread_idtutimetstimeRF((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyR‡ scCswttdƒoAti|iƒ}g}|D]\}}|t||ƒq-~Sti|i|iƒ}|iƒSdS(s8Return files opened by process as a list of namedtuples.tget_process_open_filesN(thasattrRRŒRVt nt_openfileRt LsofParserRW(RZRLR!R:tfdtlsof((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytget_open_filess /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_connectionsRVt nt_connection( RZtkindR!R"tfamiliesttypesR/t_[2]tconn((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytget_connections#s  >cCsFyti|i|ƒSWn(tj ot|i|iƒ‚nXdS(N(Rtwait_pidRVRRW(RZttimeout((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyt process_wait/scCsti|iƒS(N(t _psutil_posixt getpriorityRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytget_process_nice6scCsti|i|ƒS(N(R£t setpriorityRV(RZtvalue((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytset_process_nice:scCs5ti|iƒ}|tjo t|StddƒS(Niÿÿÿÿt?(Rtget_process_statusRVt _status_maptconstant(RZtcode((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRª>s  cCs1ti|iƒ\}}}}t||||ƒS(N(Rtget_process_io_countersRVtnt_io(RZtrctwctrbtwb((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyR®Estmmaps*path rss, private, ref_count, shadow_counts6addr, perms path rss, private, ref_count, shadow_countcCsti|iƒS(N(Rtget_process_memory_mapsRV(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytget_memory_mapsOsRŒcCstdƒ‚dS(Ns&supported only starting from FreeBSD 8(R4(RZ((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyt_not_implementedUsN(&t__name__t __module__t__doc__t __slots__RbR`RcRdReRkRlRRRmRnRsRwR|RR~RR€RR„R†R‡R’RŸRKR¢R¥R¨RªR®tnt_mmap_groupedt nt_mmap_extR¶R·(((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pyRa¬sR         (CRºRTR9RRtwarningsRR£tpsutilRt psutil._errorRRRtpsutil._compatRRtpsutil._commont__extra__all__t get_num_cpusR2t ExceptionRKtwarntRuntimeWarningRt TOTAL_PHYMEMtget_system_boot_timet BOOT_TIMEtsysconfRR'R–RRR%R&R-RtFalseR3RGRIt get_pid_listt pid_existstget_disk_usagetget_network_io_counterstnetwork_io_counterstget_disk_io_counterstdisk_io_countersR`tSTATUS_STOPPEDtSSTOPtSTATUS_SLEEPINGtSSLEEPtSTATUS_RUNNINGtSRUNt STATUS_IDLEtSIDLtSTATUS_WAITINGtSWAITt STATUS_LOCKEDtSLOCKt STATUS_ZOMBIEtSZOMBR«tobjectRa(((s3/usr/lib64/python2.6/site-packages/psutil/_psbsd.pytsz