SYMBOL INDEX (2269 symbols across 177 files) FILE: .github/workflows/changelog_bot.py function gh_request (line 222) | def gh_request(path, accept="application/vnd.github+json"): function fetch_pr_metadata (line 236) | def fetch_pr_metadata(): function fetch_pr_diff (line 251) | def fetch_pr_diff(): function ask_claude (line 258) | def ask_claude(pr, diff): function insert_changelog_entry (line 280) | def insert_changelog_entry(section, entry): function update_credits (line 366) | def update_credits(credits_entry, author, author_name): function post_comment (line 479) | def post_comment(body): function parse_cli (line 496) | def parse_cli(): function main (line 510) | def main(): FILE: .github/workflows/issues.py function is_pr (line 139) | def is_pr(issue): function has_label (line 143) | def has_label(issue, label): function get_repo (line 148) | def get_repo(): function _get_event_data (line 158) | def _get_event_data(): function is_event_new_issue (line 165) | def is_event_new_issue(): function is_event_new_pr (line 173) | def is_event_new_pr(): function get_issue (line 181) | def get_issue(): function log (line 193) | def log(msg): function add_label (line 200) | def add_label(issue, label): function _guess_labels_from_text (line 221) | def _guess_labels_from_text(text): function add_labels_from_text (line 229) | def add_labels_from_text(issue, text): function add_labels_from_new_body (line 235) | def add_labels_from_new_body(issue, text): function on_new_issue (line 292) | def on_new_issue(issue): function on_new_pr (line 319) | def on_new_pr(issue): function main (line 327) | def main(): FILE: _bootstrap.py function load_module (line 17) | def load_module(path): function get_version (line 28) | def get_version(): FILE: docs/_ext/add_home_link.py function add_home_link (line 12) | def add_home_link(app: Sphinx, pagename, templatename, context, doctree): function setup (line 23) | def setup(app: Sphinx): FILE: docs/_ext/availability.py class Availability (line 42) | class Availability(SphinxDirective): method run (line 48) | def run(self): method parse_platforms (line 64) | def parse_platforms(self): function setup (line 99) | def setup(app): FILE: docs/_ext/changelog_anchors.py function add_version_anchors (line 19) | def add_version_anchors(app, doctree, docname): function setup (line 36) | def setup(app): FILE: docs/_ext/check_python_syntax.py function check_python_blocks (line 15) | def check_python_blocks(app, doctree, docname): function setup (line 43) | def setup(app): FILE: docs/_static/sidebar.js function sidebar_is_collapsed (line 45) | function sidebar_is_collapsed() { function toggle_sidebar (line 49) | function toggle_sidebar() { function collapse_sidebar (line 56) | function collapse_sidebar() { function expand_sidebar (line 71) | function expand_sidebar() { function add_sidebar_button (line 88) | function add_sidebar_button() { function set_position_from_cookie (line 141) | function set_position_from_cookie() { FILE: psutil/__init__.py function _export_enum (line 186) | def _export_enum(cls): function _ppid_map (line 257) | def _ppid_map(): function _pprint_secs (line 270) | def _pprint_secs(secs): function _check_conn_kind (line 278) | def _check_conn_kind(kind): class Process (line 291) | class Process: method __init__ (line 319) | def __init__(self, pid: int | None = None) -> None: method _init (line 322) | def _init(self, pid, _ignore_nsp=False): method _get_ident (line 369) | def _get_ident(self): method __str__ (line 404) | def __str__(self): method __eq__ (line 436) | def __eq__(self, other): method __ne__ (line 457) | def __ne__(self, other): method __hash__ (line 460) | def __hash__(self): method _raise_if_pid_reused (line 465) | def _raise_if_pid_reused(self): method pid (line 478) | def pid(self) -> int: method oneshot (line 485) | def oneshot(self) -> Generator[None, None, None]: method as_dict (line 551) | def as_dict( method parent (line 600) | def parent(self) -> Process | None: method parents (line 622) | def parents(self) -> list[Process]: method is_running (line 633) | def is_running(self) -> bool: method ppid (line 663) | def ppid(self) -> int: method name (line 681) | def name(self) -> str: method exe (line 712) | def exe(self) -> str: method cmdline (line 754) | def cmdline(self) -> list[str]: method status (line 758) | def status(self) -> ProcessStatus | str: method username (line 765) | def username(self) -> str: method create_time (line 783) | def create_time(self) -> float: method cwd (line 795) | def cwd(self) -> str: method nice (line 799) | def nice(self, value: int | None = None) -> int | None: method uids (line 810) | def uids(self) -> puids: method gids (line 816) | def gids(self) -> pgids: method terminal (line 822) | def terminal(self) -> str | None: method num_fds (line 828) | def num_fds(self) -> int: method io_counters (line 837) | def io_counters(self) -> pio: method ionice (line 849) | def ionice( method rlimit (line 875) | def rlimit( method cpu_affinity (line 896) | def cpu_affinity( method cpu_num (line 920) | def cpu_num(self) -> int: method environ (line 933) | def environ(self) -> dict[str, str]: method num_handles (line 941) | def num_handles(self) -> int: method num_ctx_switches (line 947) | def num_ctx_switches(self) -> pctxsw: method num_threads (line 953) | def num_threads(self) -> int: method threads (line 959) | def threads(self) -> list[pthread]: method children (line 967) | def children(self, recursive: bool = False) -> list[Process]: method cpu_percent (line 1041) | def cpu_percent(self, interval: float | None = None) -> float: method cpu_times (line 1135) | def cpu_times(self) -> pcputimes: method memory_info (line 1146) | def memory_info(self) -> pmem: method memory_info_ex (line 1157) | def memory_info_ex(self) -> pmem_ex: method memory_footprint (line 1172) | def memory_footprint(self) -> pfootprint: method memory_full_info (line 1188) | def memory_full_info(self) -> pfullmem: method memory_percent (line 1204) | def memory_percent(self, memtype: str = "rss") -> float: method memory_maps (line 1253) | def memory_maps( method page_faults (line 1280) | def page_faults(self) -> ppagefaults: method open_files (line 1298) | def open_files(self) -> list[popenfile]: method net_connections (line 1305) | def net_connections(self, kind: str = "inet") -> list[pconn]: method connections (line 1331) | def connections(self, kind="inet") -> list[pconn]: method _send_signal (line 1338) | def _send_signal(self, sig): method send_signal (line 1363) | def send_signal(self, sig: int) -> None: method suspend (line 1378) | def suspend(self) -> None: method resume (line 1389) | def resume(self) -> None: method terminate (line 1400) | def terminate(self) -> None: method kill (line 1411) | def kill(self) -> None: method wait (line 1421) | def wait(self, timeout: float | None = None) -> int | None: class Popen (line 1481) | class Popen(Process): method __init__ (line 1511) | def __init__(self, *args, **kwargs): method __dir__ (line 1518) | def __dir__(self): method __enter__ (line 1521) | def __enter__(self) -> Popen: method __exit__ (line 1526) | def __exit__(self, *args, **kwargs): method __getattribute__ (line 1542) | def __getattribute__(self, name): method wait (line 1552) | def wait(self, timeout: float | None = None) -> int | None: function pids (line 1565) | def pids() -> list[int]: function pid_exists (line 1573) | def pid_exists(pid: int) -> bool: function process_iter (line 1595) | def process_iter( function wait_procs (line 1655) | def wait_procs( function cpu_count (line 1756) | def cpu_count(logical: bool = True) -> int | None: function cpu_times (line 1779) | def cpu_times(percpu: bool = False) -> scputimes | list[scputimes]: function _cpu_tot_time (line 1822) | def _cpu_tot_time(times): function _cpu_busy_time (line 1839) | def _cpu_busy_time(times): function _cpu_times_deltas (line 1854) | def _cpu_times_deltas(t1, t2): function cpu_percent (line 1875) | def cpu_percent( function cpu_times_percent (line 1959) | def cpu_times_percent( function cpu_stats (line 2020) | def cpu_stats() -> scpustats: function cpu_freq (line 2027) | def cpu_freq(percpu: bool = False) -> scpufreq | list[scpufreq] | None: function getloadavg (line 2070) | def getloadavg() -> tuple[float, float, float]: function virtual_memory (line 2087) | def virtual_memory() -> svmem: function swap_memory (line 2146) | def swap_memory() -> sswap: function disk_usage (line 2167) | def disk_usage(path: str) -> sdiskusage: function disk_partitions (line 2175) | def disk_partitions(all: bool = False) -> list[sdiskpart]: function disk_io_counters (line 2187) | def disk_io_counters( function net_io_counters (line 2246) | def net_io_counters( function net_connections (line 2293) | def net_connections(kind: str = 'inet') -> list[sconn]: function net_if_addrs (line 2323) | def net_if_addrs() -> dict[str, list[snicaddr]]: function net_if_stats (line 2384) | def net_if_stats() -> dict[str, snicstats]: function sensors_temperatures (line 2407) | def sensors_temperatures( function sensors_fans (line 2447) | def sensors_fans() -> dict[str, list[sfan]]: function sensors_battery (line 2460) | def sensors_battery() -> sbattery | None: function boot_time (line 2480) | def boot_time() -> float: function users (line 2490) | def users() -> list[suser]: function win_service_iter (line 2510) | def win_service_iter() -> Iterator[WindowsService]: function win_service_get (line 2516) | def win_service_get(name) -> WindowsService: function heap_info (line 2531) | def heap_info() -> pheap: function heap_trim (line 2547) | def heap_trim() -> None: function _set_debug (line 2572) | def _set_debug(value): FILE: psutil/_common.py class Error (line 107) | class Error(Exception): method _infodict (line 114) | def _infodict(self, attrs): method __str__ (line 122) | def __str__(self): method __repr__ (line 133) | def __repr__(self): class NoSuchProcess (line 140) | class NoSuchProcess(Error): method __init__ (line 147) | def __init__(self, pid, name=None, msg=None): method __reduce__ (line 153) | def __reduce__(self): class ZombieProcess (line 157) | class ZombieProcess(NoSuchProcess): method __init__ (line 167) | def __init__(self, pid, name=None, ppid=None, msg=None): method __reduce__ (line 172) | def __reduce__(self): class AccessDenied (line 176) | class AccessDenied(Error): method __init__ (line 181) | def __init__(self, pid=None, name=None, msg=None): method __reduce__ (line 187) | def __reduce__(self): class TimeoutExpired (line 191) | class TimeoutExpired(Error): method __init__ (line 198) | def __init__(self, seconds, pid=None, name=None): method __reduce__ (line 205) | def __reduce__(self): function usage_percent (line 214) | def usage_percent(used, total, round_=None): function memoize_when_activated (line 226) | def memoize_when_activated(fun): function isfile_strict (line 297) | def isfile_strict(path): function path_exists_strict (line 312) | def path_exists_strict(path): function supports_ipv6 (line 327) | def supports_ipv6(): function parse_environ_block (line 339) | def parse_environ_block(data): function sockfam_to_enum (line 367) | def sockfam_to_enum(num): function socktype_to_enum (line 377) | def socktype_to_enum(num): function conn_to_ntuple (line 387) | def conn_to_ntuple(fd, fam, type_, laddr, raddr, status, status_map, pid... function broadcast_addr (line 409) | def broadcast_addr(addr): function deprecated_method (line 431) | def deprecated_method(replacement): class deprecated_property (line 454) | class deprecated_property: method __init__ (line 462) | def __init__(self, replacement): method __set_name__ (line 466) | def __set_name__(self, owner, name): method __get__ (line 472) | def __get__(self, obj, objtype=None): class _WrapNumbers (line 479) | class _WrapNumbers: method __init__ (line 484) | def __init__(self): method _add_dict (line 490) | def _add_dict(self, input_dict, name): method _remove_dead_reminders (line 498) | def _remove_dead_reminders(self, input_dict, name): method run (line 509) | def run(self, input_dict, name): method cache_clear (line 548) | def cache_clear(self, name=None): method cache_info (line 560) | def cache_info(self): function wrap_numbers (line 566) | def wrap_numbers(input_dict, name): function open_binary (line 593) | def open_binary(fname): function open_text (line 597) | def open_text(fname): function cat (line 623) | def cat(fname, fallback=_DEFAULT, _open=open_text): function bcat (line 640) | def bcat(fname, fallback=_DEFAULT): function bytes2human (line 645) | def bytes2human(n, format="%(value).1f%(symbol)s"): function get_procfs_path (line 664) | def get_procfs_path(): function decode (line 669) | def decode(s): function term_supports_colors (line 679) | def term_supports_colors(force_color=False): function hilite (line 693) | def hilite(s, color=None, bold=False, force_color=False): function print_color (line 721) | def print_color( function debug (line 730) | def debug(msg): FILE: psutil/_enums.py class StrEnum (line 43) | class StrEnum(str, enum.Enum): method __new__ (line 44) | def __new__(cls, *values): method _generate_next_value_ (line 53) | def _generate_next_value_(name, _start, _count, _last_values): class ProcessStatus (line 58) | class ProcessStatus(StrEnum): class ConnectionStatus (line 76) | class ConnectionStatus(StrEnum): class NicDuplex (line 97) | class NicDuplex(enum.IntEnum): class BatteryTime (line 104) | class BatteryTime(enum.IntEnum): class ProcessIOPriority (line 112) | class ProcessIOPriority(enum.IntEnum): class ProcessIOPriority (line 123) | class ProcessIOPriority(enum.IntEnum): class ProcessPriority (line 130) | class ProcessPriority(enum.IntEnum): FILE: psutil/_ntuples.py class sswap (line 36) | class sswap(NamedTuple): class sdiskusage (line 46) | class sdiskusage(NamedTuple): class sdiskio (line 54) | class sdiskio(NamedTuple): class sdiskpart (line 71) | class sdiskpart(NamedTuple): class snetio (line 79) | class snetio(NamedTuple): class suser (line 91) | class suser(NamedTuple): class addr (line 100) | class addr(NamedTuple): class sconn (line 106) | class sconn(NamedTuple): class snicaddr (line 117) | class snicaddr(NamedTuple): class snicstats (line 126) | class snicstats(NamedTuple): class scputimes (line 135) | class scputimes(NamedTuple): method interrupt (line 157) | def interrupt(self): class scpustats (line 164) | class scpustats(NamedTuple): class scpufreq (line 172) | class scpufreq(NamedTuple): class shwtemp (line 179) | class shwtemp(NamedTuple): class sbattery (line 187) | class sbattery(NamedTuple): class sfan (line 194) | class sfan(NamedTuple): class pheap (line 202) | class pheap(NamedTuple): class svmem (line 210) | class svmem(NamedTuple): class pcputimes (line 245) | class pcputimes(NamedTuple): class popenfile (line 255) | class popenfile(NamedTuple): class pthread (line 265) | class pthread(NamedTuple): class puids (line 272) | class puids(NamedTuple): class pgids (line 279) | class pgids(NamedTuple): class pio (line 286) | class pio(NamedTuple): class pionice (line 300) | class pionice(NamedTuple): class pctxsw (line 306) | class pctxsw(NamedTuple): class ppagefaults (line 312) | class ppagefaults(NamedTuple): class pfootprint (line 320) | class pfootprint(NamedTuple): class pconn (line 328) | class pconn(NamedTuple): class pmmap_grouped (line 338) | class pmmap_grouped(NamedTuple): class pmmap_ext (line 361) | class pmmap_ext(NamedTuple): class pmem (line 392) | class pmem(NamedTuple): method lib (line 400) | def lib(self): method dirty (line 407) | def dirty(self): method __new__ (line 437) | def __new__(cls, rss, vms, peak_rss, peak_vms, _deprecated=None): method __getattr__ (line 442) | def __getattr__(self, name): class pmem (line 434) | class pmem( # noqa: SLOT002 method lib (line 400) | def lib(self): method dirty (line 407) | def dirty(self): method __new__ (line 437) | def __new__(cls, rss, vms, peak_rss, peak_vms, _deprecated=None): method __getattr__ (line 442) | def __getattr__(self, name): class pmem (line 481) | class pmem(NamedTuple): method lib (line 400) | def lib(self): method dirty (line 407) | def dirty(self): method __new__ (line 437) | def __new__(cls, rss, vms, peak_rss, peak_vms, _deprecated=None): method __getattr__ (line 442) | def __getattr__(self, name): class pmem_ex (line 486) | class pmem_ex(NamedTuple): class pmem (line 502) | class pmem(NamedTuple): method lib (line 400) | def lib(self): method dirty (line 407) | def dirty(self): method __new__ (line 437) | def __new__(cls, rss, vms, peak_rss, peak_vms, _deprecated=None): method __getattr__ (line 442) | def __getattr__(self, name): class pmem (line 519) | class pmem(NamedTuple): method lib (line 400) | def lib(self): method dirty (line 407) | def dirty(self): method __new__ (line 437) | def __new__(cls, rss, vms, peak_rss, peak_vms, _deprecated=None): method __getattr__ (line 442) | def __getattr__(self, name): FILE: psutil/_psaix.py function virtual_memory (line 86) | def virtual_memory(): function swap_memory (line 92) | def swap_memory(): function cpu_times (line 105) | def cpu_times(): function per_cpu_times (line 111) | def per_cpu_times(): function cpu_count_logical (line 117) | def cpu_count_logical(): function cpu_count_cores (line 126) | def cpu_count_cores(): function cpu_stats (line 138) | def cpu_stats(): function disk_partitions (line 153) | def disk_partitions(all=False): function net_connections (line 185) | def net_connections(kind, _pid=-1): function net_if_stats (line 212) | def net_if_stats(): function boot_time (line 258) | def boot_time(): function users (line 263) | def users(): function pids (line 287) | def pids(): function pid_exists (line 292) | def pid_exists(pid): function wrap_exceptions (line 297) | def wrap_exceptions(fun): class Process (line 320) | class Process: method __init__ (line 325) | def __init__(self, pid): method oneshot_enter (line 331) | def oneshot_enter(self): method oneshot_exit (line 335) | def oneshot_exit(self): method _proc_oneshot (line 341) | def _proc_oneshot(self): method _proc_cred (line 346) | def _proc_cred(self): method name (line 350) | def name(self): method exe (line 357) | def exe(self): method cmdline (line 387) | def cmdline(self): method environ (line 391) | def environ(self): method create_time (line 395) | def create_time(self): method num_threads (line 399) | def num_threads(self): method threads (line 405) | def threads(self): method net_connections (line 422) | def net_connections(self, kind='inet'): method nice_get (line 435) | def nice_get(self): method nice_set (line 439) | def nice_set(self, value): method ppid (line 443) | def ppid(self): method uids (line 448) | def uids(self): method gids (line 453) | def gids(self): method cpu_times (line 458) | def cpu_times(self): method terminal (line 463) | def terminal(self): method cwd (line 474) | def cwd(self): method memory_info (line 484) | def memory_info(self): method status (line 491) | def status(self): method open_files (line 496) | def open_files(self): method num_fds (line 522) | def num_fds(self): method num_ctx_switches (line 528) | def num_ctx_switches(self): method wait (line 532) | def wait(self, timeout=None): method io_counters (line 538) | def io_counters(self): FILE: psutil/_psbsd.py function virtual_memory (line 109) | def virtual_memory(): function swap_memory (line 114) | def swap_memory(): function cpu_times (line 133) | def cpu_times(): function per_cpu_times (line 139) | def per_cpu_times(): function cpu_count_logical (line 149) | def cpu_count_logical(): function cpu_count_cores (line 156) | def cpu_count_cores(): function cpu_count_cores (line 162) | def cpu_count_cores(): function cpu_stats (line 189) | def cpu_stats(): function cpu_freq (line 223) | def cpu_freq(): function cpu_freq (line 249) | def cpu_freq(): function disk_partitions (line 259) | def disk_partitions(all=False): function net_if_stats (line 286) | def net_if_stats(): function net_connections (line 307) | def net_connections(kind): function sensors_battery (line 334) | def sensors_battery(): function sensors_temperatures (line 350) | def sensors_temperatures(): function boot_time (line 372) | def boot_time(): function adjust_proc_create_time (line 386) | def adjust_proc_create_time(ctime): function users (line 401) | def users(): function _pid_0_exists (line 420) | def _pid_0_exists(): function pids (line 431) | def pids(): function pid_exists (line 443) | def pid_exists(pid): function pid_exists (line 454) | def pid_exists(pid): function wrap_exceptions (line 468) | def wrap_exceptions(fun): function wrap_exceptions_procfs (line 495) | def wrap_exceptions_procfs(inst): class Process (line 512) | class Process: method __init__ (line 517) | def __init__(self, pid): method _assert_alive (line 522) | def _assert_alive(self): method oneshot (line 530) | def oneshot(self): method oneshot_enter (line 534) | def oneshot_enter(self): method oneshot_exit (line 537) | def oneshot_exit(self): method name (line 541) | def name(self): method exe (line 546) | def exe(self): method cmdline (line 571) | def cmdline(self): method environ (line 598) | def environ(self): method terminal (line 602) | def terminal(self): method ppid (line 611) | def ppid(self): method uids (line 616) | def uids(self): method gids (line 621) | def gids(self): method cpu_times (line 626) | def cpu_times(self): method cpu_num (line 635) | def cpu_num(self): method memory_info (line 639) | def memory_info(self): method create_time (line 651) | def create_time(self, monotonic=False): method num_threads (line 659) | def num_threads(self): method num_ctx_switches (line 667) | def num_ctx_switches(self): method page_faults (line 672) | def page_faults(self): method threads (line 677) | def threads(self): method net_connections (line 689) | def net_connections(self, kind='inet'): method wait (line 714) | def wait(self, timeout=None): method nice_get (line 718) | def nice_get(self): method nice_set (line 722) | def nice_set(self, value): method status (line 726) | def status(self): method io_counters (line 732) | def io_counters(self): method cwd (line 737) | def cwd(self): method open_files (line 753) | def open_files(self): method num_fds (line 759) | def num_fds(self): method cpu_affinity_get (line 771) | def cpu_affinity_get(self): method cpu_affinity_set (line 775) | def cpu_affinity_set(self, cpus): method memory_maps (line 802) | def memory_maps(self): method rlimit (line 806) | def rlimit(self, resource, limits=None): FILE: psutil/_pslinux.py function readlink (line 128) | def readlink(path): function file_flags_to_mode (line 148) | def file_flags_to_mode(flags): function is_storage_device (line 161) | def is_storage_device(name): function calculate_avail_vmem (line 184) | def calculate_avail_vmem(mems): function virtual_memory (line 246) | def virtual_memory(): function swap_memory (line 373) | def swap_memory(): function cpu_times (line 439) | def cpu_times(): function per_cpu_times (line 469) | def per_cpu_times(): function cpu_count_logical (line 489) | def cpu_count_logical(): function cpu_count_cores (line 518) | def cpu_count_cores(): function cpu_stats (line 560) | def cpu_stats(): function _cpu_get_cpuinfo_freq (line 583) | def _cpu_get_cpuinfo_freq(): function cpu_freq (line 597) | def cpu_freq(): function cpu_freq (line 636) | def cpu_freq(): class _Ipv6UnsupportedError (line 651) | class _Ipv6UnsupportedError(Exception): class NetConnections (line 655) | class NetConnections: method __init__ (line 667) | def __init__(self): method get_proc_inodes (line 690) | def get_proc_inodes(self, pid): method get_all_inodes (line 716) | def get_all_inodes(self): method decode_address (line 733) | def decode_address(addr, family): method process_inet (line 784) | def process_inet(file, family, type_, inodes, filter_pid=None): method process_unix (line 827) | def process_unix(file, family, inodes, filter_pid=None): method retrieve (line 862) | def retrieve(self, kind, pid=None): function net_connections (line 894) | def net_connections(kind='inet'): function net_io_counters (line 899) | def net_io_counters(): function net_if_stats (line 946) | def net_if_stats(): function disk_io_counters (line 982) | def disk_io_counters(perdisk=False): class RootFsDeviceFinder (line 1087) | class RootFsDeviceFinder: method __init__ (line 1097) | def __init__(self): method ask_proc_partitions (line 1102) | def ask_proc_partitions(self): method ask_sys_dev_block (line 1115) | def ask_sys_dev_block(self): method ask_sys_class_block (line 1124) | def ask_sys_class_block(self): method find (line 1139) | def find(self): function disk_partitions (line 1162) | def disk_partitions(all=False): function sensors_temperatures (line 1206) | def sensors_temperatures(): function sensors_fans (line 1324) | def sensors_fans(): function sensors_battery (line 1355) | def sensors_battery(): function users (line 1447) | def users(): function boot_time (line 1458) | def boot_time(): function pids (line 1474) | def pids(): function pid_exists (line 1480) | def pid_exists(pid): function ppid_map (line 1513) | def ppid_map(): function wrap_exceptions (line 1535) | def wrap_exceptions(fun): class Process (line 1562) | class Process: method __init__ (line 1574) | def __init__(self, pid): method _is_zombie (line 1581) | def _is_zombie(self): method _raise_if_zombie (line 1597) | def _raise_if_zombie(self): method _raise_if_not_alive (line 1601) | def _raise_if_not_alive(self): method _readlink (line 1607) | def _readlink(self, path, fallback=UNSET): method _parse_stat_file (line 1625) | def _parse_stat_file(self): method _read_status_file (line 1666) | def _read_status_file(self): method _read_smaps_file (line 1676) | def _read_smaps_file(self): method oneshot_enter (line 1680) | def oneshot_enter(self): method oneshot_exit (line 1685) | def oneshot_exit(self): method name (line 1691) | def name(self): method exe (line 1696) | def exe(self): method cmdline (line 1702) | def cmdline(self): method environ (line 1728) | def environ(self): method terminal (line 1734) | def terminal(self): method io_counters (line 1746) | def io_counters(self): method cpu_times (line 1781) | def cpu_times(self): method cpu_num (line 1793) | def cpu_num(self): method wait (line 1798) | def wait(self, timeout=None): method create_time (line 1802) | def create_time(self, monotonic=False): method memory_info (line 1819) | def memory_info(self): method memory_info_ex (line 1838) | def memory_info_ex( method _parse_smaps_rollup (line 1870) | def _parse_smaps_rollup(self): method _parse_smaps (line 1894) | def _parse_smaps( method memory_footprint (line 1923) | def memory_footprint(self): method memory_maps (line 1938) | def memory_maps(self): method page_faults (line 2010) | def page_faults(self): method cwd (line 2015) | def cwd(self): method num_ctx_switches (line 2021) | def num_ctx_switches( method num_threads (line 2037) | def num_threads(self, _num_threads_re=re.compile(br'Threads:\t(\d+)')): method threads (line 2043) | def threads(self): method nice_get (line 2070) | def nice_get(self): method nice_set (line 2079) | def nice_set(self, value): method cpu_affinity_get (line 2086) | def cpu_affinity_get(self): method _get_eligible_cpus (line 2089) | def _get_eligible_cpus( method cpu_affinity_set (line 2101) | def cpu_affinity_set(self, cpus): method ionice_get (line 2127) | def ionice_get(self): method ionice_set (line 2133) | def ionice_set(self, ioclass, value): method rlimit (line 2150) | def rlimit(self, resource_, limits=None): method status (line 2178) | def status(self): method open_files (line 2185) | def open_files(self): method net_connections (line 2233) | def net_connections(self, kind='inet'): method num_fds (line 2239) | def num_fds(self): method ppid (line 2243) | def ppid(self): method uids (line 2247) | def uids(self, _uids_re=re.compile(br'Uid:\t(\d+)\t(\d+)\t(\d+)')): method gids (line 2253) | def gids(self, _gids_re=re.compile(br'Gid:\t(\d+)\t(\d+)\t(\d+)')): FILE: psutil/_psosx.py function virtual_memory (line 69) | def virtual_memory(): function swap_memory (line 78) | def swap_memory(): function cpu_times (line 95) | def cpu_times(): function per_cpu_times (line 101) | def per_cpu_times(): function cpu_count_logical (line 111) | def cpu_count_logical(): function cpu_count_cores (line 116) | def cpu_count_cores(): function cpu_stats (line 121) | def cpu_stats(): function cpu_freq (line 130) | def cpu_freq(): function disk_partitions (line 149) | def disk_partitions(all=False): function sensors_battery (line 170) | def sensors_battery(): function net_connections (line 196) | def net_connections(kind='inet'): function net_if_stats (line 214) | def net_if_stats(): function boot_time (line 240) | def boot_time(): function adjust_proc_create_time (line 253) | def adjust_proc_create_time(ctime): function users (line 268) | def users(): function pids (line 288) | def pids(): function wrap_exceptions (line 307) | def wrap_exceptions(fun): class Process (line 329) | class Process: method __init__ (line 334) | def __init__(self, pid): method _oneshot_kinfo (line 341) | def _oneshot_kinfo(self): method _oneshot_pidtaskinfo (line 347) | def _oneshot_pidtaskinfo(self): method oneshot_enter (line 351) | def oneshot_enter(self): method oneshot_exit (line 355) | def oneshot_exit(self): method name (line 360) | def name(self): method exe (line 365) | def exe(self): method cmdline (line 369) | def cmdline(self): method environ (line 373) | def environ(self): method ppid (line 377) | def ppid(self): method cwd (line 382) | def cwd(self): method uids (line 386) | def uids(self): method gids (line 391) | def gids(self): method terminal (line 396) | def terminal(self): method memory_info (line 405) | def memory_info(self): method memory_info_ex (line 410) | def memory_info_ex(self): method memory_footprint (line 414) | def memory_footprint(self): method page_faults (line 419) | def page_faults(self): method cpu_times (line 424) | def cpu_times(self): method create_time (line 430) | def create_time(self, monotonic=False): method num_ctx_switches (line 437) | def num_ctx_switches(self): method num_threads (line 445) | def num_threads(self): method open_files (line 449) | def open_files(self): method net_connections (line 461) | def net_connections(self, kind='inet'): method num_fds (line 474) | def num_fds(self): method wait (line 480) | def wait(self, timeout=None): method nice_get (line 484) | def nice_get(self): method nice_set (line 488) | def nice_set(self, value): method status (line 492) | def status(self): method threads (line 498) | def threads(self): FILE: psutil/_psposix.py function pid_exists (line 29) | def pid_exists(pid): function negsig_to_enum (line 56) | def negsig_to_enum(num): function convert_exit_code (line 64) | def convert_exit_code(status): function wait_pid_posix (line 95) | def wait_pid_posix( function _waitpid (line 163) | def _waitpid(pid, timeout): function wait_pid_pidfd_open (line 177) | def wait_pid_pidfd_open(pid, timeout=None): function wait_pid_kqueue (line 206) | def wait_pid_kqueue(pid, timeout=None): function can_use_pidfd_open (line 238) | def can_use_pidfd_open(): function can_use_kqueue (line 257) | def can_use_kqueue(): function wait_pid (line 289) | def wait_pid(pid, timeout=None): function disk_usage (line 307) | def disk_usage(path): function get_terminal_map (line 344) | def get_terminal_map(): FILE: psutil/_pssunos.py function virtual_memory (line 97) | def virtual_memory(): function swap_memory (line 108) | def swap_memory(): function cpu_times (line 153) | def cpu_times(): function per_cpu_times (line 159) | def per_cpu_times(): function cpu_count_logical (line 165) | def cpu_count_logical(): function cpu_count_cores (line 174) | def cpu_count_cores(): function cpu_stats (line 179) | def cpu_stats(): function disk_partitions (line 195) | def disk_partitions(all=False): function net_connections (line 230) | def net_connections(kind, _pid=-1): function net_if_stats (line 261) | def net_if_stats(): function boot_time (line 276) | def boot_time(): function users (line 281) | def users(): function pids (line 305) | def pids(): function pid_exists (line 311) | def pid_exists(pid): function wrap_exceptions (line 316) | def wrap_exceptions(fun): class Process (line 345) | class Process: method __init__ (line 350) | def __init__(self, pid): method _assert_alive (line 356) | def _assert_alive(self): method oneshot_enter (line 362) | def oneshot_enter(self): method oneshot_exit (line 367) | def oneshot_exit(self): method _proc_name_and_args (line 374) | def _proc_name_and_args(self): method _oneshot (line 379) | def _oneshot(self): method _proc_cred (line 390) | def _proc_cred(self): method name (line 394) | def name(self): method exe (line 399) | def exe(self): method cmdline (line 411) | def cmdline(self): method environ (line 415) | def environ(self): method create_time (line 419) | def create_time(self): method num_threads (line 423) | def num_threads(self): method nice_get (line 427) | def nice_get(self): method nice_set (line 434) | def nice_set(self, value): method ppid (line 444) | def ppid(self): method uids (line 449) | def uids(self): method gids (line 459) | def gids(self): method cpu_times (line 469) | def cpu_times(self): method cpu_num (line 487) | def cpu_num(self): method terminal (line 491) | def terminal(self): method cwd (line 506) | def cwd(self): method memory_info (line 519) | def memory_info(self): method status (line 526) | def status(self): method threads (line 532) | def threads(self): method open_files (line 566) | def open_files(self): method _get_unix_sockets (line 586) | def _get_unix_sockets(self, pid): method net_connections (line 628) | def net_connections(self, kind='inet'): method memory_maps (line 650) | def memory_maps(self): method num_fds (line 695) | def num_fds(self): method num_ctx_switches (line 699) | def num_ctx_switches(self): method page_faults (line 705) | def page_faults(self): method wait (line 710) | def wait(self, timeout=None): FILE: psutil/_psutil_aix.c function psutil_file_to_struct (line 64) | int function PyObject (line 93) | static PyObject * function PyObject (line 141) | static PyObject * function PyObject (line 161) | static PyObject * function PyObject (line 214) | static PyObject * function PyObject (line 288) | static PyObject * function PyObject (line 356) | static PyObject * function PyObject (line 387) | static PyObject * function PyObject (line 413) | static PyObject * function PyObject (line 440) | static PyObject * function PyObject (line 480) | static PyObject * function PyObject (line 537) | static PyObject * function PyObject (line 610) | static PyObject * function PyObject (line 661) | static PyObject * function PyObject (line 688) | static PyObject * function PyObject (line 755) | static PyObject * function PyObject (line 818) | static PyObject * function PyObject (line 846) | static PyObject * function PyObject (line 873) | static PyObject * type module_state (line 966) | struct module_state { function psutil_aix_traverse (line 976) | static int function psutil_aix_clear (line 982) | static int type PyModuleDef (line 988) | struct PyModuleDef type module_state (line 992) | struct module_state function PyMODINIT_FUNC (line 1001) | PyMODINIT_FUNC FILE: psutil/_psutil_bsd.c type PyModuleDef (line 101) | struct PyModuleDef function PyObject (line 113) | PyObject * FILE: psutil/_psutil_linux.c type PyModuleDef (line 50) | struct PyModuleDef function PyObject (line 63) | PyObject * FILE: psutil/_psutil_osx.c type PyModuleDef (line 65) | struct PyModuleDef function PyObject (line 78) | PyObject * FILE: psutil/_psutil_sunos.c type module_state (line 67) | struct module_state { type PyModuleDef (line 72) | struct PyModuleDef function PyObject (line 85) | PyObject * FILE: psutil/_psutil_windows.c type module_state (line 112) | struct module_state { function psutil_windows_traverse (line 117) | static int function psutil_windows_clear (line 123) | static int type PyModuleDef (line 129) | struct PyModuleDef type module_state (line 133) | struct module_state function PyMODINIT_FUNC (line 142) | PyMODINIT_FUNC FILE: psutil/_pswindows.py function convert_dos_path (line 94) | def convert_dos_path(s): function getpagesize (line 116) | def getpagesize(): function virtual_memory (line 125) | def virtual_memory(): function swap_memory (line 139) | def swap_memory(): function disk_usage (line 180) | def disk_usage(path): function disk_partitions (line 191) | def disk_partitions(all): function cpu_times (line 202) | def cpu_times(): function per_cpu_times (line 216) | def per_cpu_times(): function cpu_count_logical (line 225) | def cpu_count_logical(): function cpu_count_cores (line 230) | def cpu_count_cores(): function cpu_stats (line 235) | def cpu_stats(): function cpu_freq (line 242) | def cpu_freq(): function _getloadavg_impl (line 255) | def _getloadavg_impl(): function getloadavg (line 261) | def getloadavg(): function net_connections (line 283) | def net_connections(kind, _pid=-1): function net_if_stats (line 306) | def net_if_stats(): function net_io_counters (line 317) | def net_io_counters(): function net_if_addrs (line 324) | def net_if_addrs(): function sensors_battery (line 334) | def sensors_battery(): function boot_time (line 361) | def boot_time(): function users (line 377) | def users(): function win_service_iter (line 393) | def win_service_iter(): function win_service_get (line 399) | def win_service_get(name): class WindowsService (line 406) | class WindowsService: # noqa: PLW1641 method __init__ (line 409) | def __init__(self, name: str, display_name: str): method __str__ (line 413) | def __str__(self): method __repr__ (line 417) | def __repr__(self): method __eq__ (line 420) | def __eq__(self, other: object): method __ne__ (line 427) | def __ne__(self, other: object): method _query_config (line 430) | def _query_config(self): method _query_status (line 443) | def _query_status(self): method _wrap_exceptions (line 451) | def _wrap_exceptions(self): method name (line 475) | def name(self) -> str: method display_name (line 482) | def display_name(self) -> str: method binpath (line 488) | def binpath(self) -> str: method username (line 494) | def username(self) -> str: method start_type (line 498) | def start_type(self) -> str: method pid (line 506) | def pid(self) -> int | None: method status (line 512) | def status(self) -> str: method description (line 516) | def description(self) -> str: method as_dict (line 522) | def as_dict(self) -> dict[str, str | int | None]: function is_permission_err (line 583) | def is_permission_err(exc): function convert_oserror (line 592) | def convert_oserror(exc, pid=None, name=None): function wrap_exceptions (line 602) | def wrap_exceptions(fun): function retry_error_partial_copy (line 615) | def retry_error_partial_copy(fun): class Process (line 643) | class Process: method __init__ (line 648) | def __init__(self, pid): method oneshot_enter (line 655) | def oneshot_enter(self): method oneshot_exit (line 659) | def oneshot_exit(self): method _oneshot (line 664) | def _oneshot(self): method name (line 670) | def name(self): method exe (line 684) | def exe(self): method cmdline (line 703) | def cmdline(self): method environ (line 719) | def environ(self): method ppid (line 723) | def ppid(self): method _get_raw_meminfo (line 729) | def _get_raw_meminfo(self): method memory_info (line 755) | def memory_info(self): method memory_info_ex (line 782) | def memory_info_ex(self): method memory_footprint (line 795) | def memory_footprint(self): method page_faults (line 801) | def page_faults(self): method memory_maps (line 805) | def memory_maps(self): method kill (line 819) | def kill(self): method send_signal (line 823) | def send_signal(self, sig): method wait (line 836) | def wait(self, timeout=None): method username (line 877) | def username(self): method create_time (line 884) | def create_time(self, fast_only=False): method num_threads (line 899) | def num_threads(self): method threads (line 903) | def threads(self): method cpu_times (line 912) | def cpu_times(self): method suspend (line 926) | def suspend(self): method resume (line 930) | def resume(self): method cwd (line 935) | def cwd(self): method open_files (line 944) | def open_files(self): method net_connections (line 961) | def net_connections(self, kind='inet'): method nice_get (line 965) | def nice_get(self): method nice_set (line 971) | def nice_set(self, value): method ionice_get (line 975) | def ionice_get(self): method ionice_set (line 981) | def ionice_set(self, ioclass, value): method io_counters (line 991) | def io_counters(self): method status (line 1010) | def status(self): method cpu_affinity_get (line 1018) | def cpu_affinity_get(self): method cpu_affinity_set (line 1026) | def cpu_affinity_set(self, value): method num_handles (line 1052) | def num_handles(self): method num_ctx_switches (line 1062) | def num_ctx_switches(self): FILE: psutil/arch/aix/common.c function psutil_kread (line 17) | int type procentry64 (line 42) | struct procentry64 type procentry64 (line 46) | struct procentry64 type procentry64 (line 46) | struct procentry64 type procentry64 (line 47) | struct procentry64 type procentry64 (line 53) | struct procentry64 type fdsinfo64 (line 61) | struct fdsinfo64 type procentry64 (line 68) | struct procentry64 type procentry64 (line 75) | struct procentry64 FILE: psutil/arch/aix/common.h type u_longlong_t (line 18) | typedef u_longlong_t KA_T; type procentry64 (line 28) | struct procentry64 FILE: psutil/arch/aix/ifaddrs.c type sockaddr (line 28) | struct sockaddr type sockaddr (line 29) | struct sockaddr type sockaddr (line 30) | struct sockaddr type sockaddr (line 32) | struct sockaddr function freeifaddrs (line 40) | void function getifaddrs (line 53) | int FILE: psutil/arch/aix/ifaddrs.h type ifaddrs (line 23) | struct ifaddrs { type ifaddrs (line 32) | struct ifaddrs type ifaddrs (line 33) | struct ifaddrs FILE: psutil/arch/aix/net_connections.c function read_unp_addr (line 37) | static int function PyObject (line 67) | static PyObject * function PyObject (line 233) | PyObject * FILE: psutil/arch/aix/net_kernel_structs.h type file64 (line 35) | struct file64 { type socket64 (line 43) | struct socket64 { type protosw64 (line 52) | struct protosw64 { type inpcb64 (line 59) | struct inpcb64 { type tcpcb64 (line 80) | struct tcpcb64 { type unpcb64 (line 86) | struct unpcb64 { type m_hdr64 (line 96) | struct m_hdr64 { type mbuf64 (line 103) | struct mbuf64 { FILE: psutil/arch/all/errors.c function PyObject (line 20) | PyObject * function PyObject (line 34) | PyObject * function PyObject (line 56) | PyObject * function PyObject (line 72) | PyObject * function PyObject (line 91) | PyObject * function psutil_badargs (line 103) | int FILE: psutil/arch/all/init.c function PyObject (line 23) | PyObject * function psutil_setup (line 45) | int FILE: psutil/arch/all/pids.c function PyObject (line 15) | PyObject * function PyObject (line 34) | PyObject * FILE: psutil/arch/all/str.c function _error (line 18) | static int function str_format (line 38) | int function str_copy (line 65) | int function str_append (line 83) | int FILE: psutil/arch/all/utils.c function pylist_append_fmt (line 10) | int function pylist_append_obj (line 36) | int function pydict_add (line 53) | int function psutil_usage_percent (line 75) | double FILE: psutil/arch/bsd/cpu.c function PyObject (line 16) | PyObject * function PyObject (line 33) | PyObject * FILE: psutil/arch/bsd/disk.c function PyObject (line 20) | PyObject * FILE: psutil/arch/bsd/heap.c function PyObject (line 23) | PyObject * function PyObject (line 67) | PyObject * FILE: psutil/arch/bsd/init.c function convert_kvm_err (line 14) | void FILE: psutil/arch/bsd/init.h type kinfo_file (line 15) | struct kinfo_file FILE: psutil/arch/bsd/mem.c function PyObject (line 18) | PyObject * FILE: psutil/arch/bsd/net.c function PyObject (line 17) | PyObject * FILE: psutil/arch/bsd/proc.c function PyObject (line 26) | PyObject * function PyObject (line 195) | PyObject * type kinfo_proc2 (line 227) | struct kinfo_proc2 type kinfo_proc (line 229) | struct kinfo_proc function PyObject (line 359) | PyObject * FILE: psutil/arch/bsd/proc_utils.c function psutil_kinfo_proc (line 25) | int type kinfo_file (line 65) | struct kinfo_file type kinfo_file (line 74) | struct kinfo_file type kinfo_file (line 80) | struct kinfo_file type kinfo_file (line 88) | struct kinfo_file type kinfo_file (line 95) | struct kinfo_file function is_zombie (line 101) | int FILE: psutil/arch/bsd/sys.c function PyObject (line 15) | PyObject * FILE: psutil/arch/freebsd/cpu.c function PyObject (line 26) | PyObject * function PyObject (line 83) | PyObject * function PyObject (line 104) | PyObject * function PyObject (line 140) | PyObject * FILE: psutil/arch/freebsd/disk.c function PyObject (line 19) | PyObject * FILE: psutil/arch/freebsd/mem.c function sbn (line 23) | static inline int function PyObject (line 29) | PyObject * function PyObject (line 107) | PyObject * FILE: psutil/arch/freebsd/pids.c function _psutil_pids (line 16) | int FILE: psutil/arch/freebsd/proc.c function psutil_remove_spaces (line 22) | static void function PyObject (line 41) | PyObject * function PyObject (line 91) | PyObject * function PyObject (line 135) | PyObject * function PyObject (line 148) | PyObject * function PyObject (line 206) | PyObject * function PyObject (line 255) | PyObject * function PyObject (line 280) | PyObject * function PyObject (line 414) | PyObject * function PyObject (line 452) | PyObject * function PyObject (line 505) | PyObject * function PyObject (line 537) | PyObject * FILE: psutil/arch/freebsd/proc_socks.c function psutil_sockaddr_port (line 51) | static int type sockaddr_storage (line 68) | struct sockaddr_storage type sockaddr_in6 (line 69) | struct sockaddr_in6 type sockaddr_in (line 70) | struct sockaddr_in type sockaddr_in (line 73) | struct sockaddr_in type sockaddr_in6 (line 77) | struct sockaddr_in6 function socklen_t (line 83) | static socklen_t function psutil_sockaddr_matches (line 92) | static int type xtcpcb (line 110) | struct xtcpcb type kinfo_file (line 111) | struct kinfo_file type xtcpcb (line 112) | struct xtcpcb type xinpcb (line 113) | struct xinpcb type tcpcb (line 115) | struct tcpcb type kinfo_file (line 116) | struct kinfo_file type tcpcb (line 117) | struct tcpcb type inpcb (line 118) | struct inpcb type xinpgen (line 120) | struct xinpgen type xsocket (line 121) | struct xsocket type xinpgen (line 123) | struct xinpgen type xinpgen (line 124) | struct xinpgen type xinpgen (line 125) | struct xinpgen type xinpgen (line 126) | struct xinpgen type xtcpcb (line 129) | struct xtcpcb type xtcpcb (line 133) | struct xtcpcb type xtcpcb (line 134) | struct xtcpcb type xtcpcb (line 135) | struct xtcpcb function PyObject (line 202) | PyObject * FILE: psutil/arch/freebsd/sensors.c function PyObject (line 25) | PyObject * function PyObject (line 51) | PyObject * FILE: psutil/arch/freebsd/sys_socks.c function psutil_populate_xfiles (line 29) | static int type xfile (line 56) | struct xfile type xfile (line 58) | struct xfile type xfile (line 60) | struct xfile function psutil_gather_inet (line 73) | static int function psutil_gather_unix (line 245) | static int function psutil_int_in_seq (line 360) | static int function PyObject (line 374) | PyObject * FILE: psutil/arch/linux/disk.c function PyObject (line 15) | PyObject * FILE: psutil/arch/linux/heap.c type my_mallinfo2 (line 17) | struct my_mallinfo2 { function PyObject (line 33) | PyObject * function PyObject (line 83) | PyObject * FILE: psutil/arch/linux/mem.c function PyObject (line 13) | PyObject * FILE: psutil/arch/linux/net.c type __u64 (line 20) | typedef __u64 u64; type __u32 (line 21) | typedef __u32 u32; type __u16 (line 22) | typedef __u16 u16; type __u8 (line 23) | typedef __u8 u8; function psutil_ethtool_cmd_speed (line 33) | static inline uint32_t function PyObject (line 56) | PyObject * FILE: psutil/arch/linux/proc.c function ioprio_get (line 24) | static inline int function ioprio_set (line 29) | static inline int function PyObject (line 43) | PyObject * function PyObject (line 61) | PyObject * function PyObject (line 85) | PyObject * function PyObject (line 145) | PyObject * FILE: psutil/arch/netbsd/cpu.c function PyObject (line 26) | PyObject * function PyObject (line 46) | PyObject * FILE: psutil/arch/netbsd/disk.c function PyObject (line 23) | PyObject * FILE: psutil/arch/netbsd/mem.c function PyObject (line 29) | PyObject * FILE: psutil/arch/netbsd/pids.c function _psutil_pids (line 16) | int FILE: psutil/arch/netbsd/proc.c function PyObject (line 17) | PyObject * function PyObject (line 110) | PyObject * function PyObject (line 123) | PyObject * function PyObject (line 195) | PyObject * function PyObject (line 264) | PyObject * FILE: psutil/arch/netbsd/socks.c type kif (line 20) | struct kif { type kpcb (line 32) | struct kpcb { function psutil_kiflist_init (line 44) | static void function psutil_kiflist_clear (line 51) | static void function psutil_kpcblist_init (line 64) | static void function psutil_kpcblist_clear (line 71) | static void function psutil_get_files (line 84) | static int function psutil_get_sockets (line 153) | static int function psutil_get_info (line 223) | static int function PyObject (line 310) | PyObject * FILE: psutil/arch/openbsd/cpu.c function PyObject (line 15) | PyObject * function PyObject (line 64) | PyObject * function PyObject (line 85) | PyObject * FILE: psutil/arch/openbsd/disk.c function PyObject (line 15) | PyObject * FILE: psutil/arch/openbsd/mem.c function PyObject (line 17) | PyObject * FILE: psutil/arch/openbsd/pids.c function _psutil_pids (line 16) | int FILE: psutil/arch/openbsd/proc.c function PyObject (line 20) | PyObject * function PyObject (line 61) | PyObject * function PyObject (line 135) | PyObject * function PyObject (line 169) | PyObject * FILE: psutil/arch/openbsd/socks.c function PyObject (line 20) | PyObject * FILE: psutil/arch/openbsd/users.c function PyObject (line 14) | PyObject * FILE: psutil/arch/osx/cpu.c function PyObject (line 41) | PyObject * function PyObject (line 51) | PyObject * function PyObject (line 61) | PyObject * function PyObject (line 95) | PyObject * function psutil_find_pmgr_entry (line 140) | static int function PyObject (line 176) | PyObject * function PyObject (line 188) | PyObject * function PyObject (line 242) | PyObject * function PyObject (line 247) | PyObject * function PyObject (line 276) | PyObject * FILE: psutil/arch/osx/disk.c function PyObject (line 28) | PyObject * function PyObject (line 163) | PyObject * function PyObject (line 218) | PyObject * FILE: psutil/arch/osx/heap.c function get_zones (line 16) | static int function PyObject (line 64) | PyObject * function PyObject (line 90) | PyObject * FILE: psutil/arch/osx/init.c function psutil_setup_osx (line 17) | int FILE: psutil/arch/osx/init.h type kinfo_proc (line 19) | struct kinfo_proc type proc_fdinfo (line 25) | struct proc_fdinfo FILE: psutil/arch/osx/mem.c function psutil_sys_vminfo (line 22) | static int function PyObject (line 54) | PyObject * function PyObject (line 109) | PyObject * FILE: psutil/arch/osx/net.c function PyObject (line 21) | PyObject * FILE: psutil/arch/osx/pids.c function _psutil_pids (line 16) | int FILE: psutil/arch/osx/proc.c function convert_status (line 38) | static int function PyObject (line 71) | PyObject * function PyObject (line 129) | PyObject * function PyObject (line 181) | PyObject * function PyObject (line 198) | PyObject * function PyObject (line 221) | PyObject * function psutil_in_shared_region (line 256) | static bool function PyObject (line 285) | PyObject * function PyObject (line 341) | PyObject * function PyObject (line 445) | PyObject * function PyObject (line 565) | PyObject * function PyObject (line 654) | PyObject * function PyObject (line 892) | PyObject * function PyObject (line 911) | PyObject * function PyObject (line 999) | PyObject * FILE: psutil/arch/osx/proc_utils.c function psutil_get_kinfo_proc (line 23) | int function is_zombie (line 53) | int function psutil_sysctl_procargs (line 67) | int function psutil_proc_pidinfo (line 118) | int function psutil_task_for_pid (line 158) | int type proc_fdinfo (line 197) | struct proc_fdinfo type proc_fdinfo (line 202) | struct proc_fdinfo FILE: psutil/arch/osx/sensors.c function PyObject (line 22) | PyObject * FILE: psutil/arch/osx/sys.c function PyObject (line 17) | PyObject * FILE: psutil/arch/posix/init.c function psutil_getpagesize (line 26) | long function PyObject (line 42) | PyObject * function psutil_posix_add_methods (line 71) | int function psutil_posix_add_constants (line 98) | int FILE: psutil/arch/posix/net.c function PyObject (line 53) | PyObject * function PyObject (line 126) | PyObject * function PyObject (line 216) | PyObject * function append_flag (line 244) | static int function PyObject (line 252) | PyObject * function PyObject (line 442) | PyObject * function psutil_get_nic_speed (line 477) | int function PyObject (line 621) | PyObject * FILE: psutil/arch/posix/pids.c function has_pid_zero (line 14) | static int function psutil_pid_exists (line 28) | int FILE: psutil/arch/posix/proc.c function PyObject (line 18) | PyObject * function else (line 43) | else if (is_zombie(pid)) function PyObject (line 74) | PyObject * FILE: psutil/arch/posix/sysctl.c function psutil_sysctl (line 19) | int function psutil_sysctl_malloc (line 42) | int function psutil_sysctl_argmax (line 108) | size_t function psutil_sysctlbyname (line 128) | int function psutil_sysctlbyname_malloc (line 161) | int FILE: psutil/arch/posix/users.c function setup (line 16) | static void function teardown (line 23) | static void function PyObject (line 30) | PyObject * FILE: psutil/arch/sunos/cpu.c function PyObject (line 16) | PyObject * function PyObject (line 64) | PyObject * function PyObject (line 100) | PyObject * FILE: psutil/arch/sunos/disk.c function PyObject (line 16) | PyObject * function PyObject (line 73) | PyObject * FILE: psutil/arch/sunos/environ.c function open_address_space (line 31) | static int function read_offt (line 54) | static size_t function is_ptr_dereference_possible (line 214) | static inline int function ptr_size_by_psinfo (line 230) | static inline int function search_pointers_vector_size_offt (line 243) | static int function psutil_free_cstrings_array (line 386) | void FILE: psutil/arch/sunos/mem.c function PyObject (line 15) | PyObject * FILE: psutil/arch/sunos/net.c function PyObject (line 28) | PyObject * function PyObject (line 144) | PyObject * function PyObject (line 261) | PyObject * FILE: psutil/arch/sunos/proc.c function psutil_file_to_struct (line 16) | static int function PyObject (line 45) | PyObject * function PyObject (line 79) | PyObject * function PyObject (line 176) | PyObject * function PyObject (line 251) | PyObject * function PyObject (line 277) | PyObject * function PyObject (line 348) | PyObject * function PyObject (line 375) | PyObject * function PyObject (line 394) | PyObject * function PyObject (line 451) | PyObject * function PyObject (line 474) | PyObject * FILE: psutil/arch/sunos/sys.c function PyObject (line 14) | PyObject * FILE: psutil/arch/windows/cpu.c function psutil_get_num_cpus (line 18) | static unsigned int function PyObject (line 48) | PyObject * function PyObject (line 76) | PyObject * function PyObject (line 157) | PyObject * function PyObject (line 172) | PyObject * function PyObject (line 255) | PyObject * function PyObject (line 370) | PyObject * FILE: psutil/arch/windows/disk.c function PyObject (line 42) | PyObject * function PyObject (line 80) | PyObject * function PyObject (line 210) | PyObject * function PyObject (line 379) | PyObject * FILE: psutil/arch/windows/heap.c function PyObject (line 26) | PyObject * function PyObject (line 97) | PyObject * FILE: psutil/arch/windows/init.c function PyObject (line 27) | PyObject * function PyObject (line 65) | PyObject * function PVOID (line 83) | PVOID function PVOID (line 100) | PVOID function PVOID (line 122) | PVOID function _to_unix_time (line 153) | static double function psutil_FiletimeToUnixTime (line 167) | double function psutil_LargeIntegerToUnixTime (line 175) | double function psutil_loadlibs (line 186) | static int function psutil_set_winver (line 282) | static int function psutil_setup_windows (line 310) | int FILE: psutil/arch/windows/mem.c function PyObject (line 15) | PyObject * function PyObject (line 23) | PyObject * function PyObject (line 60) | PyObject * FILE: psutil/arch/windows/net.c function PIP_ADAPTER_ADDRESSES (line 18) | static PIP_ADAPTER_ADDRESSES function PyObject (line 52) | PyObject * function PyObject (line 132) | PyObject * function PyObject (line 341) | PyObject * FILE: psutil/arch/windows/ntextapi.h type LONG (line 14) | typedef LONG NTSTATUS; type KTHREAD_STATE (line 47) | typedef enum _KTHREAD_STATE { type KWAIT_REASON (line 60) | typedef enum _KWAIT_REASON { type WTS_INFO_CLASS (line 104) | typedef enum _WTS_INFO_CLASS { type WTS_CONNECTSTATE_CLASS (line 137) | typedef enum _WTS_CONNECTSTATE_CLASS { type _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION (line 155) | typedef struct { type _SYSTEM_PERFORMANCE_INFORMATION (line 165) | typedef struct { type _SYSTEM_INTERRUPT_INFORMATION (line 243) | typedef struct { type SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX (line 252) | typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX { type SYSTEM_HANDLE_INFORMATION_EX (line 263) | typedef struct _SYSTEM_HANDLE_INFORMATION_EX { type CLIENT_ID2 (line 269) | typedef struct _CLIENT_ID2 { type SYSTEM_THREAD_INFORMATION2 (line 277) | typedef struct _SYSTEM_THREAD_INFORMATION2 { type SYSTEM_PROCESS_INFORMATION2 (line 294) | typedef struct _SYSTEM_PROCESS_INFORMATION2 { type PROCESSOR_POWER_INFORMATION (line 336) | typedef struct _PROCESSOR_POWER_INFORMATION { type IN6_ADDR (line 346) | typedef struct in6_addr { type RTL_USER_PROCESS_PARAMETERS_ (line 355) | typedef struct { type WTS_SESSION_INFOW (line 367) | typedef struct _WTS_SESSION_INFOW { type WTS_CLIENT_ADDRESS (line 376) | typedef struct _WTS_CLIENT_ADDRESS { type WTSINFOW (line 381) | typedef struct _WTSINFOW { type DUMMYUNIONNAME (line 406) | typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX { type MEMORY_WORKING_SET_BLOCK (line 421) | typedef struct _MEMORY_WORKING_SET_BLOCK { type MEMORY_WORKING_SET_INFORMATION (line 434) | typedef struct _MEMORY_WORKING_SET_INFORMATION { type PSUTIL_PROCESS_WS_COUNTERS (line 440) | typedef struct _PSUTIL_PROCESS_WS_COUNTERS { type SYSTEM_PROCESS_ID_INFORMATION (line 448) | typedef struct _SYSTEM_PROCESS_ID_INFORMATION { type PEB_ (line 458) | typedef struct { type UNICODE_STRING32 (line 469) | typedef struct { type RTL_USER_PROCESS_PARAMETERS32 (line 475) | typedef struct { type PEB32 (line 486) | typedef struct { type PEB_ (line 496) | typedef struct { type PROCESS_BASIC_INFORMATION64 (line 516) | typedef struct { type UNICODE_STRING64 (line 524) | typedef struct { type RTL_USER_PROCESS_PARAMETERS64 (line 530) | typedef struct { type PEB64 (line 541) | typedef struct { FILE: psutil/arch/windows/pids.c function _psutil_pids (line 14) | int FILE: psutil/arch/windows/proc.c function PyObject (line 37) | PyObject * function PyObject (line 55) | PyObject * function PyObject (line 89) | PyObject * function PyObject (line 162) | PyObject * function PyObject (line 215) | PyObject * function PyObject (line 325) | PyObject * function psutil_GetProcWsetInformation (line 371) | static int function PyObject (line 438) | PyObject * function PyObject (line 489) | PyObject * function PyObject (line 519) | PyObject * function PyObject (line 623) | PyObject * function PTOKEN_USER (line 643) | static PTOKEN_USER function PyObject (line 701) | PyObject * function PyObject (line 802) | PyObject * function PyObject (line 829) | PyObject * function PyObject (line 858) | PyObject * function PyObject (line 886) | PyObject * function PyObject (line 915) | PyObject * function PyObject (line 949) | PyObject * function PyObject (line 976) | PyObject * function PyObject (line 1006) | PyObject * function PyObject (line 1030) | PyObject * function PyObject (line 1057) | PyObject * function PyObject (line 1106) | PyObject * function PyObject (line 1176) | PyObject * FILE: psutil/arch/windows/proc_handles.c function psutil_enum_handles (line 33) | static int function psutil_get_filename (line 81) | static int function DWORD (line 147) | static DWORD function PyObject (line 210) | PyObject * FILE: psutil/arch/windows/proc_info.c function psutil_get_process_region_size (line 42) | static int type psutil_process_data_kind (line 56) | enum psutil_process_data_kind { function psutil_convert_winerr (line 63) | static void function psutil_convert_ntstatus_err (line 78) | static void function psutil_giveup_with_ad (line 90) | static void function psutil_get_process_data (line 114) | static int function psutil_cmdline_query_proc (line 457) | static int function PyObject (line 548) | PyObject * function PyObject (line 636) | PyObject * function PyObject (line 671) | PyObject * function psutil_get_proc_info (line 712) | int function PyObject (line 791) | PyObject * FILE: psutil/arch/windows/proc_utils.c function psutil_pid_in_pids (line 17) | int function HANDLE (line 41) | HANDLE function HANDLE (line 101) | HANDLE function psutil_pid_is_running (line 123) | int FILE: psutil/arch/windows/security.c function BOOL (line 16) | static BOOL function HANDLE (line 68) | static HANDLE function psutil_print_err (line 98) | static void function psutil_set_se_debug (line 117) | int FILE: psutil/arch/windows/sensors.c function PyObject (line 15) | PyObject * FILE: psutil/arch/windows/services.c function SC_HANDLE (line 19) | SC_HANDLE function SC_HANDLE (line 46) | static SC_HANDLE function PyObject (line 128) | PyObject * function PyObject (line 219) | PyObject * function PyObject (line 319) | PyObject * function PyObject (line 394) | PyObject * function PyObject (line 479) | PyObject * function PyObject (line 514) | PyObject * FILE: psutil/arch/windows/socks.c function PVOID (line 28) | static PVOID function PVOID (line 60) | static PVOID function PyObject (line 102) | PyObject * FILE: psutil/arch/windows/sys.c function PyObject (line 28) | PyObject * function PyObject (line 46) | PyObject * FILE: psutil/arch/windows/wmi.c function VOID (line 46) | VOID CALLBACK function PyObject (line 72) | PyObject * function PyObject (line 132) | PyObject * FILE: scripts/battery.py function secs2hours (line 21) | def secs2hours(secs): function main (line 27) | def main(): FILE: scripts/cpu_distribution.py function clean_screen (line 53) | def clean_screen(): function main (line 60) | def main(): FILE: scripts/disk_usage.py function main (line 25) | def main(): FILE: scripts/fans.py function main (line 19) | def main(): FILE: scripts/free.py function main (line 18) | def main(): FILE: scripts/ifconfig.py function main (line 63) | def main(): FILE: scripts/internal/bench_oneshot.py function main (line 124) | def main(): FILE: scripts/internal/bench_oneshot_2.py function call_normal (line 20) | def call_normal(funs): function call_oneshot (line 25) | def call_oneshot(funs): function main (line 31) | def main(): FILE: scripts/internal/convert_readme.py function main (line 27) | def main(): FILE: scripts/internal/download_wheels.py function safe_rmpath (line 41) | def safe_rmpath(path): function get_artifacts (line 52) | def get_artifacts(): function download_zip (line 63) | def download_zip(url): function run (line 77) | def run(): function main (line 85) | def main(): FILE: scripts/internal/find_adopters.py function stderr (line 75) | def stderr(msg="", color=None): function graphql (line 82) | def graphql(session, query, variables=None): function get_session (line 103) | def get_session(token): function enumerate_repos (line 113) | def enumerate_repos(session): function fetch_readmes (line 189) | def fetch_readmes(session, repos): function _build_fixed_dep_fragment (line 240) | def _build_fixed_dep_fragment(): function _make_req_alias (line 262) | def _make_req_alias(filename): function fetch_dep_files (line 269) | def fetch_dep_files(session, repos): function classify_dependency (line 380) | def classify_dependency(file_contents): function make_subst_name (line 455) | def make_subst_name(full_name): function tier_label (line 463) | def tier_label(stars): function generate_rst (line 472) | def generate_rst(projects): function load_cache (line 569) | def load_cache(): function save_cache (line 602) | def save_cache(repos, readmes, dep_files): function parse_cli (line 618) | def parse_cli(): function main (line 715) | def main(): FILE: scripts/internal/find_broken_links.py function memoize (line 62) | def memoize(fun): function sanitize_url (line 78) | def sanitize_url(url): function find_urls (line 90) | def find_urls(s): function parse_rst (line 95) | def parse_rst(fname): function parse_py (line 102) | def parse_py(fname): function parse_c (line 123) | def parse_c(fname): function parse_generic (line 154) | def parse_generic(fname): function get_urls (line 160) | def get_urls(fname): function validate_url (line 176) | def validate_url(url): function parallel_validator (line 191) | def parallel_validator(urls): function main (line 222) | def main(): FILE: scripts/internal/generate_manifest.py function sh (line 18) | def sh(cmd): function main (line 24) | def main(): FILE: scripts/internal/git_pre_commit.py function log (line 28) | def log(msg="", color=None, bold=None): function exit_with (line 35) | def exit_with(msg): function sh (line 40) | def sh(cmd): function git_commit_files (line 57) | def git_commit_files(): function lint_manifest (line 74) | def lint_manifest(): function run_make (line 84) | def run_make(target, files): function main (line 94) | def main(): FILE: scripts/internal/install_pip.py function main (line 25) | def main(): FILE: scripts/internal/print_access_denied.py function main (line 54) | def main(): FILE: scripts/internal/print_announce.py function rst_to_text (line 72) | def rst_to_text(s): function get_changes (line 88) | def get_changes(): function main (line 128) | def main(): FILE: scripts/internal/print_api_speed.py function print_header (line 86) | def print_header(what): function print_timings (line 92) | def print_timings(): function timecall (line 104) | def timecall(title, fun, *args, **kw): function set_highest_priority (line 118) | def set_highest_priority(): function main (line 132) | def main(): FILE: scripts/internal/print_dist.py class Wheel (line 24) | class Wheel: method __init__ (line 25) | def __init__(self, path): method __repr__ (line 29) | def __repr__(self): method name (line 41) | def name(self): method platform (line 44) | def platform(self): method arch (line 66) | def arch(self): method pyver (line 77) | def pyver(self): method size (line 82) | def size(self): class Tarball (line 86) | class Tarball(Wheel): method platform (line 87) | def platform(self): method arch (line 90) | def arch(self): method pyver (line 93) | def pyver(self): function main (line 97) | def main(): FILE: scripts/internal/print_downloads.py function sh (line 39) | def sh(cmd): function query (line 58) | def query(cmd): function top_packages (line 65) | def top_packages(): function ranking (line 74) | def ranking(): function downloads (line 82) | def downloads(): function downloads_pyver (line 90) | def downloads_pyver(): function downloads_by_country (line 94) | def downloads_by_country(): function downloads_by_system (line 98) | def downloads_by_system(): function downloads_by_distro (line 102) | def downloads_by_distro(): function print_row (line 112) | def print_row(left, right): function print_header (line 118) | def print_header(left, right="Downloads"): function print_markdown_table (line 124) | def print_markdown_table(title, left, rows): function main (line 135) | def main(): FILE: scripts/internal/print_hashes.py function csum (line 16) | def csum(file, kind): function main (line 23) | def main(): FILE: scripts/internal/print_sysinfo.py function sh (line 38) | def sh(cmd): function main (line 49) | def main(): FILE: scripts/internal/purge_installation.py function rmpath (line 22) | def rmpath(path): function purge (line 31) | def purge(): function purge_windows (line 40) | def purge_windows(): function main (line 72) | def main(): FILE: scripts/internal/rst_check_dead_refs.py function line_number (line 41) | def line_number(text, pos): function read_with_includes (line 45) | def read_with_includes(path, _seen=None): function main (line 65) | def main(): FILE: scripts/iotop.py function printl (line 47) | def printl(line, highlight=False): function poll (line 64) | def poll(interval): function refresh_window (line 113) | def refresh_window(procs, disks_read, disks_write): function setup (line 143) | def setup(): function tear_down (line 152) | def tear_down(): function main (line 159) | def main(): FILE: scripts/killall.py function main (line 15) | def main(): FILE: scripts/meminfo.py function pprint_ntuple (line 36) | def pprint_ntuple(nt): function main (line 44) | def main(): FILE: scripts/netstat.py function main (line 38) | def main(): FILE: scripts/nettop.py function printl (line 48) | def printl(line, highlight=False): function poll (line 65) | def poll(interval): function refresh_window (line 76) | def refresh_window(tot_before, tot_after, pnic_before, pnic_after): function setup (line 127) | def setup(): function tear_down (line 136) | def tear_down(): function main (line 143) | def main(): FILE: scripts/pidof.py function pidof (line 19) | def pidof(pgname): function main (line 29) | def main(): FILE: scripts/pmap.py function safe_print (line 38) | def safe_print(s): function main (line 46) | def main(): FILE: scripts/procinfo.py function print_ (line 120) | def print_(a, b): function str_ntuple (line 128) | def str_ntuple(nt, convert_bytes=False): function run (line 139) | def run(pid, verbose=False): function main (line 328) | def main(): FILE: scripts/procsmem.py function convert_bytes (line 46) | def convert_bytes(n): function main (line 58) | def main(): FILE: scripts/ps.py function main (line 42) | def main(): FILE: scripts/pstree.py function print_tree (line 36) | def print_tree(parent, tree, indent=''): function main (line 53) | def main(): FILE: scripts/sensors.py function secs2hours (line 33) | def secs2hours(secs): function main (line 39) | def main(): FILE: scripts/temperatures.py function main (line 29) | def main(): FILE: scripts/top.py function printl (line 52) | def printl(line, color=None, bold=False, highlight=False): function poll (line 76) | def poll(interval): function get_color (line 109) | def get_color(perc): function print_header (line 118) | def print_header(procs_status, num_procs): function refresh_window (line 180) | def refresh_window(procs, procs_status): function setup (line 236) | def setup(): function tear_down (line 245) | def tear_down(): function main (line 252) | def main(): FILE: scripts/who.py function main (line 20) | def main(): FILE: scripts/winservices.py function main (line 41) | def main(): FILE: setup.py function get_long_description (line 153) | def get_long_description(): function silenced_output (line 169) | def silenced_output(): function has_python_h (line 175) | def has_python_h(): function get_sysdeps (line 180) | def get_sysdeps(): function print_install_instructions (line 208) | def print_install_instructions(): function unix_can_compile (line 224) | def unix_can_compile(c_code): function get_winver (line 253) | def get_winver(): function main (line 418) | def main(): FILE: tests/__init__.py function macos_version (line 128) | def macos_version(): function _get_py_exe (line 223) | def _get_py_exe(): class ThreadTask (line 285) | class ThreadTask(threading.Thread): method __init__ (line 288) | def __init__(self): method __repr__ (line 294) | def __repr__(self): method __enter__ (line 298) | def __enter__(self): method __exit__ (line 302) | def __exit__(self, *args, **kwargs): method start (line 305) | def start(self): method run (line 314) | def run(self): method stop (line 320) | def stop(self): function _reap_children_on_err (line 333) | def _reap_children_on_err(fun): function spawn_subproc (line 346) | def spawn_subproc(cmd=None, **kwds): function spawn_children_pair (line 396) | def spawn_children_pair(): function spawn_zombie (line 434) | def spawn_zombie(): function pyrun (line 476) | def pyrun(src, **kwds): function sh (line 496) | def sh(cmd, **kwds): function terminate (line 520) | def terminate(proc_or_pid, sig=signal.SIGTERM, wait_timeout=GLOBAL_TIMEO... function reap_children (line 604) | def reap_children(recursive=False): function kernel_version (line 641) | def kernel_version(): function get_winver (line 665) | def get_winver(): class retry (line 678) | class retry: method __init__ (line 681) | def __init__( method __iter__ (line 697) | def __iter__(self): method sleep (line 709) | def sleep(self): method __call__ (line 713) | def __call__(self, fun): function wait_for_pid (line 741) | def wait_for_pid(pid): function wait_for_file (line 756) | def wait_for_file(fname, delete=True, empty=False): function call_until (line 773) | def call_until(fun): function safe_rmpath (line 785) | def safe_rmpath(path): function safe_mkdir (line 819) | def safe_mkdir(dir): function chdir (line 828) | def chdir(dirname): function create_py_exe (line 838) | def create_py_exe(path): function create_c_exe (line 849) | def create_c_exe(path, c_code=None): function get_testfn (line 875) | def get_testfn(suffix="", dir=None): class PsutilTestCase (line 892) | class PsutilTestCase(unittest.TestCase): method __str__ (line 901) | def __str__(self): method get_testfn (line 911) | def get_testfn(self, suffix="", dir=None): method spawn_subproc (line 916) | def spawn_subproc(self, *args, **kwds): method spawn_psproc (line 921) | def spawn_psproc(self, *args, **kwargs): method spawn_children_pair (line 929) | def spawn_children_pair(self): method spawn_zombie (line 935) | def spawn_zombie(self): method pyrun (line 941) | def pyrun(self, *args, **kwds): method _check_proc_exc (line 947) | def _check_proc_exc(self, proc, exc): method assert_pid_gone (line 960) | def assert_pid_gone(self, pid): method assert_proc_gone (line 975) | def assert_proc_gone(self, proc): method assert_proc_zombie (line 994) | def assert_proc_zombie(self, proc): method check_proc_memory (line 1064) | def check_proc_memory(self, nt): function is_win_secure_system_proc (line 1081) | def is_win_secure_system_proc(pid): function _get_eligible_cpu (line 1099) | def _get_eligible_cpu(): class process_namespace (line 1108) | class process_namespace: method __init__ (line 1206) | def __init__(self, proc): method iter (line 1209) | def iter(self, ls, clear_cache=True): method clear_cache (line 1222) | def clear_cache(self): method test_class_coverage (line 1227) | def test_class_coverage(cls, test_class, ls): method test (line 1241) | def test(cls): class system_namespace (line 1250) | class system_namespace: method iter (line 1311) | def iter(ls): function retry_on_failure (line 1325) | def retry_on_failure(retries=NO_RETRIES): function skip_on_access_denied (line 1363) | def skip_on_access_denied(only_if=None): function skip_on_not_implemented (line 1382) | def skip_on_not_implemented(only_if=None): function get_free_port (line 1411) | def get_free_port(host='127.0.0.1'): function bind_socket (line 1418) | def bind_socket(family=AF_INET, type=SOCK_STREAM, addr=None): function bind_unix_socket (line 1435) | def bind_unix_socket(name, type=socket.SOCK_STREAM): function tcp_socketpair (line 1450) | def tcp_socketpair(family, addr=("", 0)): function unix_socketpair (line 1473) | def unix_socketpair(name): function create_sockets (line 1497) | def create_sockets(): function check_net_address (line 1527) | def check_net_address(addr, family): function check_connection_ntuple (line 1547) | def check_connection_ntuple(conn): function filter_proc_net_connections (line 1623) | def filter_proc_net_connections(cons): class TypeHintsChecker (line 1642) | class TypeHintsChecker: method _get_ntuple_hints (line 1650) | def _get_ntuple_hints(nt): method _hint_to_types (line 1669) | def _hint_to_types(hint): method check_ntuple_type_hints (line 1695) | def check_ntuple_type_hints(nt): method _get_return_hint (line 1726) | def _get_return_hint(fun): method _check_container_items (line 1759) | def _check_container_items(hint, value): method check_fun_type_hints (line 1778) | def check_fun_type_hints(fun, retval): function reload_module (line 1803) | def reload_module(module): function import_module_by_path (line 1807) | def import_module_by_path(path): function warn (line 1818) | def warn(msg): function is_namedtuple (line 1823) | def is_namedtuple(x): function copyload_shared_lib (line 1837) | def copyload_shared_lib(suffix=""): function copyload_shared_lib (line 1861) | def copyload_shared_lib(suffix=""): function cleanup_test_procs (line 1913) | def cleanup_test_procs(): FILE: tests/test_aix.py class AIXSpecificTestCase (line 22) | class AIXSpecificTestCase(PsutilTestCase): method test_virtual_memory (line 23) | def test_virtual_memory(self): method test_swap_memory (line 57) | def test_swap_memory(self): method test_cpu_stats (line 80) | def test_cpu_stats(self): method test_cpu_count_logical (line 133) | def test_cpu_count_logical(self): method test_net_if_addrs_names (line 139) | def test_net_if_addrs_names(self): FILE: tests/test_bsd.py function sysctl (line 42) | def sysctl(cmdline): function muse (line 57) | def muse(field): class BSDTestCase (line 74) | class BSDTestCase(PsutilTestCase): method setUpClass (line 78) | def setUpClass(cls): method tearDownClass (line 82) | def tearDownClass(cls): method test_process_create_time (line 86) | def test_process_create_time(self): method test_disks (line 95) | def test_disks(self): method test_cpu_count_logical (line 125) | def test_cpu_count_logical(self): method test_virtual_memory_total (line 135) | def test_virtual_memory_total(self): method test_net_if_stats (line 142) | def test_net_if_stats(self): class FreeBSDTestCase (line 160) | class FreeBSDTestCase(PsutilTestCase): method setUpClass (line 162) | def setUpClass(cls): method tearDownClass (line 166) | def tearDownClass(cls): method test_memory_maps (line 170) | def test_memory_maps(self): method test_exe (line 184) | def test_exe(self): method test_cmdline (line 188) | def test_cmdline(self): method test_uids_gids (line 194) | def test_uids_gids(self): method test_ctx_switches (line 208) | def test_ctx_switches(self): method test_cpu_times (line 228) | def test_cpu_times(self): class FreeBSDSystemTestCase (line 249) | class FreeBSDSystemTestCase(PsutilTestCase): method parse_swapinfo (line 251) | def parse_swapinfo(): method test_cpu_frequency_against_sysctl (line 263) | def test_cpu_frequency_against_sysctl(self): method test_vmem_active (line 286) | def test_vmem_active(self): method test_vmem_inactive (line 291) | def test_vmem_inactive(self): method test_vmem_wired (line 296) | def test_vmem_wired(self): method test_vmem_cached (line 301) | def test_vmem_cached(self): method test_vmem_free (line 306) | def test_vmem_free(self): method test_vmem_buffers (line 311) | def test_vmem_buffers(self): method test_muse_vmem_total (line 318) | def test_muse_vmem_total(self): method test_muse_vmem_active (line 324) | def test_muse_vmem_active(self): method test_muse_vmem_inactive (line 330) | def test_muse_vmem_inactive(self): method test_muse_vmem_wired (line 336) | def test_muse_vmem_wired(self): method test_muse_vmem_cached (line 342) | def test_muse_vmem_cached(self): method test_muse_vmem_free (line 348) | def test_muse_vmem_free(self): method test_muse_vmem_buffers (line 354) | def test_muse_vmem_buffers(self): method test_cpu_stats_ctx_switches (line 358) | def test_cpu_stats_ctx_switches(self): method test_cpu_stats_interrupts (line 367) | def test_cpu_stats_interrupts(self): method test_cpu_stats_soft_interrupts (line 373) | def test_cpu_stats_soft_interrupts(self): method test_cpu_stats_syscalls (line 383) | def test_cpu_stats_syscalls(self): method test_swapmem_free (line 392) | def test_swapmem_free(self): method test_swapmem_used (line 396) | def test_swapmem_used(self): method test_swapmem_total (line 400) | def test_swapmem_total(self): method test_boot_time (line 406) | def test_boot_time(self): method test_sensors_battery (line 416) | def test_sensors_battery(self): method test_sensors_battery_against_sysctl (line 434) | def test_sensors_battery_against_sysctl(self): method test_sensors_battery_no_battery (line 448) | def test_sensors_battery_no_battery(self): method test_sensors_temperatures_against_sysctl (line 460) | def test_sensors_temperatures_against_sysctl(self): class OpenBSDTestCase (line 491) | class OpenBSDTestCase(PsutilTestCase): method test_boot_time (line 492) | def test_boot_time(self): class NetBSDTestCase (line 505) | class NetBSDTestCase(PsutilTestCase): method parse_meminfo (line 507) | def parse_meminfo(look_for): method test_vmem_total (line 516) | def test_vmem_total(self): method test_vmem_free (line 519) | def test_vmem_free(self): method test_vmem_buffers (line 525) | def test_vmem_buffers(self): method test_vmem_shared (line 534) | def test_vmem_shared(self): method test_vmem_cached (line 543) | def test_vmem_cached(self): method test_swapmem_total (line 551) | def test_swapmem_total(self): method test_swapmem_free (line 557) | def test_swapmem_free(self): method test_swapmem_used (line 563) | def test_swapmem_used(self): method test_cpu_stats_interrupts (line 569) | def test_cpu_stats_interrupts(self): method test_cpu_stats_ctx_switches (line 579) | def test_cpu_stats_ctx_switches(self): FILE: tests/test_connections.py function this_proc_net_connections (line 50) | def this_proc_net_connections(kind): class ConnectionTestCase (line 58) | class ConnectionTestCase(PsutilTestCase): method setUp (line 59) | def setUp(self): method tearDown (line 62) | def tearDown(self): method compare_procsys_connections (line 66) | def compare_procsys_connections(self, pid, proc_cons, kind='all'): class TestBasicOperations (line 87) | class TestBasicOperations(ConnectionTestCase): method test_system (line 89) | def test_system(self): method test_process (line 94) | def test_process(self): method test_invalid_kind (line 99) | def test_invalid_kind(self): class TestUnconnectedSockets (line 107) | class TestUnconnectedSockets(ConnectionTestCase): method get_conn_from_sock (line 110) | def get_conn_from_sock(self, sock): method check_socket (line 123) | def check_socket(self, sock): method test_tcp_v4 (line 153) | def test_tcp_v4(self): method test_tcp_v6 (line 161) | def test_tcp_v6(self): method test_udp_v4 (line 168) | def test_udp_v4(self): method test_udp_v6 (line 176) | def test_udp_v6(self): method test_unix_tcp (line 184) | def test_unix_tcp(self): method test_unix_udp (line 192) | def test_unix_udp(self): class TestConnectedSocket (line 201) | class TestConnectedSocket(ConnectionTestCase): method test_tcp (line 209) | def test_tcp(self): method test_unix (line 232) | def test_unix(self): class TestFilters (line 259) | class TestFilters(ConnectionTestCase): method test_filters (line 260) | def test_filters(self): method test_combos (line 292) | def test_combos(self): method test_count (line 430) | def test_count(self): class TestSystemWideConnections (line 490) | class TestSystemWideConnections(ConnectionTestCase): method test_it (line 493) | def test_it(self): method test_multi_sockets_procs (line 514) | def test_multi_sockets_procs(self): class TestMisc (line 555) | class TestMisc(PsutilTestCase): method test_net_connection_constants (line 556) | def test_net_connection_constants(self): FILE: tests/test_contracts.py class TestAvailConstantsAPIs (line 52) | class TestAvailConstantsAPIs(PsutilTestCase): method check_constants (line 54) | def check_constants(self, names, are_avail): method test_PROCFS_PATH (line 65) | def test_PROCFS_PATH(self): method test_proc_status (line 68) | def test_proc_status(self): method test_proc_status_strenum (line 88) | def test_proc_status_strenum(self): method test_conn_status (line 110) | def test_conn_status(self): method test_conn_status_strenum (line 133) | def test_conn_status_strenum(self): method test_nic_duplex (line 153) | def test_nic_duplex(self): method test_battery_time (line 158) | def test_battery_time(self): method test_proc_ioprio_class_linux (line 163) | def test_proc_ioprio_class_linux(self): method test_proc_ioprio_value_windows (line 178) | def test_proc_ioprio_value_windows(self): method test_proc_priority_windows (line 191) | def test_proc_priority_windows(self): method test_rlimit (line 212) | def test_rlimit(self): method test_enum_containers (line 242) | def test_enum_containers(self): class TestAvailSystemAPIs (line 251) | class TestAvailSystemAPIs(PsutilTestCase): method test_win_service_iter (line 252) | def test_win_service_iter(self): method test_win_service_get (line 255) | def test_win_service_get(self): method test_cpu_freq (line 261) | def test_cpu_freq(self): method test_sensors_temperatures (line 266) | def test_sensors_temperatures(self): method test_sensors_fans (line 269) | def test_sensors_fans(self): method test_battery (line 272) | def test_battery(self): method test_heap_info (line 277) | def test_heap_info(self): method test_heap_trim (line 284) | def test_heap_trim(self): class TestAvailProcessAPIs (line 292) | class TestAvailProcessAPIs(PsutilTestCase): method test_environ (line 293) | def test_environ(self): method test_uids (line 305) | def test_uids(self): method test_gids (line 308) | def test_gids(self): method test_terminal (line 311) | def test_terminal(self): method test_ionice (line 314) | def test_ionice(self): method test_rlimit (line 321) | def test_rlimit(self): method test_io_counters (line 324) | def test_io_counters(self): method test_num_fds (line 328) | def test_num_fds(self): method test_num_handles (line 331) | def test_num_handles(self): method test_cpu_affinity (line 334) | def test_cpu_affinity(self): method test_cpu_num (line 339) | def test_cpu_num(self): method test_memory_maps (line 344) | def test_memory_maps(self): method test_memory_footprint (line 348) | def test_memory_footprint(self): class TestSystemAPITypes (line 358) | class TestSystemAPITypes(PsutilTestCase): method setUpClass (line 364) | def setUpClass(cls): method assert_ntuple_of_nums (line 367) | def assert_ntuple_of_nums(self, nt, type_=float, gezero=True): method test_cpu_times (line 374) | def test_cpu_times(self): method test_cpu_percent (line 379) | def test_cpu_percent(self): method test_cpu_times_percent (line 383) | def test_cpu_times_percent(self): method test_cpu_count (line 387) | def test_cpu_count(self): method test_cpu_freq (line 391) | def test_cpu_freq(self): method test_disk_io_counters (line 396) | def test_disk_io_counters(self): method test_disk_partitions (line 402) | def test_disk_partitions(self): method test_net_connections (line 411) | def test_net_connections(self): method test_net_if_addrs (line 418) | def test_net_if_addrs(self): method test_net_if_stats (line 428) | def test_net_if_stats(self): method test_net_io_counters (line 438) | def test_net_io_counters(self): method test_sensors_fans (line 444) | def test_sensors_fans(self): method test_sensors_temperatures (line 453) | def test_sensors_temperatures(self): method test_boot_time (line 463) | def test_boot_time(self): method test_users (line 467) | def test_users(self): FILE: tests/test_heap.py function malloc (line 72) | def malloc(size): function free (line 84) | def free(ptr): function GetProcessHeap (line 104) | def GetProcessHeap(): function HeapAlloc (line 112) | def HeapAlloc(heap, size): function HeapFree (line 120) | def HeapFree(heap, addr): function VirtualAllocEx (line 128) | def VirtualAllocEx(size): function VirtualFreeEx (line 137) | def VirtualFreeEx(addr): function HeapCreate (line 144) | def HeapCreate(initial_size, max_size): function HeapDestroy (line 156) | def HeapDestroy(heap): function trim_memory (line 168) | def trim_memory(): function assert_within_percent (line 173) | def assert_within_percent(actual, expected, percent): class HeapTestCase (line 185) | class HeapTestCase(PsutilTestCase): method setUp (line 186) | def setUp(self): method tearDownClass (line 190) | def tearDownClass(cls): class TestHeap (line 194) | class TestHeap(HeapTestCase): method test_heap_used (line 199) | def test_heap_used(self): method test_mmap_used (line 232) | def test_mmap_used(self): class TestHeapWindows (line 274) | class TestHeapWindows(HeapTestCase): method test_heap_used (line 277) | def test_heap_used(self): method test_mmap_used (line 296) | def test_mmap_used(self): method test_heap_count (line 316) | def test_heap_count(self): FILE: tests/test_linux.py class LinuxTestCase (line 62) | class LinuxTestCase(PsutilTestCase): function get_ipv4_address (line 71) | def get_ipv4_address(ifname): function get_ipv4_netmask (line 83) | def get_ipv4_netmask(ifname): function get_ipv4_broadcast (line 95) | def get_ipv4_broadcast(ifname): function get_ipv6_addresses (line 107) | def get_ipv6_addresses(ifname): function get_mac_address (line 129) | def get_mac_address(ifname): function free_swap (line 140) | def free_swap(): function free_physmem (line 154) | def free_physmem(): function vmstat (line 174) | def vmstat(stat): function get_free_version_info (line 183) | def get_free_version_info(): function mock_open_content (line 191) | def mock_open_content(pairs): function mock_open_exception (line 212) | def mock_open_exception(for_path, exc): class TestSystemVirtualMemoryAgainstFree (line 232) | class TestSystemVirtualMemoryAgainstFree(LinuxTestCase): method test_total (line 233) | def test_total(self): method test_used (line 239) | def test_used(self): method test_free (line 253) | def test_free(self): method test_shared (line 259) | def test_shared(self): method test_available (line 270) | def test_available(self): class TestSystemVirtualMemoryAgainstVmstat (line 282) | class TestSystemVirtualMemoryAgainstVmstat(LinuxTestCase): method test_total (line 283) | def test_total(self): method test_used (line 289) | def test_used(self): method test_free (line 303) | def test_free(self): method test_buffers (line 309) | def test_buffers(self): method test_active (line 315) | def test_active(self): method test_inactive (line 321) | def test_inactive(self): class TestSystemVirtualMemoryMocks (line 327) | class TestSystemVirtualMemoryMocks(LinuxTestCase): method test_warnings_on_misses (line 328) | def test_warnings_on_misses(self): method test_avail_old_percent (line 365) | def test_avail_old_percent(self): method test_avail_old_comes_from_kernel (line 380) | def test_avail_old_comes_from_kernel(self): method test_avail_old_missing_fields (line 408) | def test_avail_old_missing_fields(self): method test_avail_old_missing_zoneinfo (line 433) | def test_avail_old_missing_zoneinfo(self): method test_virtual_memory_mocked (line 461) | def test_virtual_memory_mocked(self): class TestSystemSwapMemory (line 533) | class TestSystemSwapMemory(LinuxTestCase): method meminfo_has_swap_info (line 535) | def meminfo_has_swap_info(): method test_total (line 541) | def test_total(self): method test_used (line 547) | def test_used(self): method test_free (line 553) | def test_free(self): method test_missing_sin_sout (line 558) | def test_missing_sin_sout(self): method test_no_vmstat_mocked (line 573) | def test_no_vmstat_mocked(self): method test_meminfo_against_sysinfo (line 590) | def test_meminfo_against_sysinfo(self): method test_emulate_meminfo_has_no_metrics (line 607) | def test_emulate_meminfo_has_no_metrics(self): class TestSystemCPUCountLogical (line 621) | class TestSystemCPUCountLogical(LinuxTestCase): method test_against_sysdev_cpu_online (line 626) | def test_against_sysdev_cpu_online(self): method test_against_sysdev_cpu_num (line 637) | def test_against_sysdev_cpu_num(self): method test_against_nproc (line 645) | def test_against_nproc(self): method test_against_lscpu (line 652) | def test_against_lscpu(self): method test_emulate_fallbacks (line 657) | def test_emulate_fallbacks(self): class TestSystemCPUCountCores (line 694) | class TestSystemCPUCountCores(LinuxTestCase): method test_against_lscpu (line 698) | def test_against_lscpu(self): method test_method_2 (line 710) | def test_method_2(self): method test_emulate_none (line 718) | def test_emulate_none(self): class TestSystemCPUFrequency (line 726) | class TestSystemCPUFrequency(LinuxTestCase): method test_emulate_use_second_file (line 731) | def test_emulate_use_second_file(self): method test_emulate_use_cpuinfo (line 750) | def test_emulate_use_cpuinfo(self): method test_emulate_data (line 775) | def test_emulate_data(self): method test_emulate_multi_cpu (line 807) | def test_emulate_multi_cpu(self): method test_emulate_no_scaling_cur_freq_file (line 858) | def test_emulate_no_scaling_cur_freq_file(self): class TestSystemCPUStats (line 880) | class TestSystemCPUStats(LinuxTestCase): method test_interrupts (line 888) | def test_interrupts(self): class TestLoadAvg (line 894) | class TestLoadAvg(LinuxTestCase): method test_getloadavg (line 895) | def test_getloadavg(self): class TestSystemNetIfAddrs (line 910) | class TestSystemNetIfAddrs(LinuxTestCase): method test_ips (line 911) | def test_ips(self): method test_against_ip_addr_v4 (line 937) | def test_against_ip_addr_v4(self): method test_against_ip_addr_v6 (line 967) | def test_against_ip_addr_v6(self): class TestSystemNetIfStats (line 1011) | class TestSystemNetIfStats(LinuxTestCase): method test_against_ifconfig (line 1015) | def test_against_ifconfig(self): method test_mtu (line 1027) | def test_mtu(self): method test_flags (line 1035) | def test_flags(self): class TestSystemNetIOCounters (line 1065) | class TestSystemNetIOCounters(LinuxTestCase): method test_against_ifconfig (line 1070) | def test_against_ifconfig(self): class TestSystemNetConnections (line 1116) | class TestSystemNetConnections(LinuxTestCase): method test_emulate_ipv6_unsupported (line 1119) | def test_emulate_ipv6_unsupported(self, supports_ipv6, inet_ntop): method test_emulate_unix (line 1128) | def test_emulate_unix(self): class TestSystemDiskPartitions (line 1145) | class TestSystemDiskPartitions(LinuxTestCase): method test_against_df (line 1150) | def test_against_df(self): method test_zfs_fs (line 1171) | def test_zfs_fs(self): method test_emulate_realpath_fail (line 1195) | def test_emulate_realpath_fail(self): class TestSystemDiskIoCounters (line 1208) | class TestSystemDiskIoCounters(LinuxTestCase): method test_emulate_kernel_2_4 (line 1209) | def test_emulate_kernel_2_4(self): method test_emulate_kernel_2_6_full (line 1228) | def test_emulate_kernel_2_6_full(self): method test_emulate_kernel_2_6_limited (line 1248) | def test_emulate_kernel_2_6_limited(self): method test_emulate_include_partitions (line 1270) | def test_emulate_include_partitions(self): method test_emulate_exclude_partitions (line 1289) | def test_emulate_exclude_partitions(self): method test_emulate_use_sysfs (line 1321) | def test_emulate_use_sysfs(self): method test_emulate_not_impl (line 1332) | def test_emulate_not_impl(self): class TestRootFsDeviceFinder (line 1343) | class TestRootFsDeviceFinder(LinuxTestCase): method setUp (line 1344) | def setUp(self): method test_call_methods (line 1349) | def test_call_methods(self): method test_comparisons (line 1364) | def test_comparisons(self): method test_against_findmnt (line 1387) | def test_against_findmnt(self): method test_disk_partitions_mocked (line 1392) | def test_disk_partitions_mocked(self): class TestMisc (line 1411) | class TestMisc(LinuxTestCase): method test_boot_time (line 1412) | def test_boot_time(self): method test_no_procfs_on_import (line 1417) | def test_no_procfs_on_import(self): method test_cpu_steal_decrease (line 1482) | def test_cpu_steal_decrease(self): method test_boot_time_mocked (line 1521) | def test_boot_time_mocked(self): method test_users (line 1527) | def test_users(self): method test_procfs_path (line 1533) | def test_procfs_path(self): method test_issue_687 (line 1561) | def test_issue_687(self): method test_pid_exists_no_proc_status (line 1579) | def test_pid_exists_no_proc_status(self): class TestSensorsBattery (line 1594) | class TestSensorsBattery(LinuxTestCase): method test_percent (line 1598) | def test_percent(self): method test_emulate_power_plugged (line 1604) | def test_emulate_power_plugged(self): method test_emulate_power_plugged_2 (line 1621) | def test_emulate_power_plugged_2(self): method test_emulate_power_not_plugged (line 1637) | def test_emulate_power_not_plugged(self): method test_emulate_power_not_plugged_2 (line 1650) | def test_emulate_power_not_plugged_2(self): method test_emulate_power_undetermined (line 1666) | def test_emulate_power_undetermined(self): method test_emulate_energy_full_0 (line 1685) | def test_emulate_energy_full_0(self): method test_emulate_energy_full_not_avail (line 1693) | def test_emulate_energy_full_not_avail(self): method test_percent_against_capacity (line 1713) | def test_percent_against_capacity(self): method test_emulate_no_power (line 1724) | def test_emulate_no_power(self): class TestSensorsBatteryEmulated (line 1739) | class TestSensorsBatteryEmulated(LinuxTestCase): method test_it (line 1740) | def test_it(self): class TestSensorsTemperatures (line 1759) | class TestSensorsTemperatures(LinuxTestCase): method test_emulate_class_hwmon (line 1760) | def test_emulate_class_hwmon(self): method test_emulate_class_thermal (line 1787) | def test_emulate_class_thermal(self): class TestSensorsFans (line 1825) | class TestSensorsFans(LinuxTestCase): method test_emulate_data (line 1826) | def test_emulate_data(self): class TestProcess (line 1852) | class TestProcess(LinuxTestCase): method test_parse_smaps_vs_memory_maps (line 1854) | def test_parse_smaps_vs_memory_maps(self): method test_parse_smaps_mocked (line 1865) | def test_parse_smaps_mocked(self): method test_open_files_mode (line 1898) | def test_open_files_mode(self): method test_open_files_file_gone (line 1931) | def test_open_files_file_gone(self): method test_open_files_fd_gone (line 1954) | def test_open_files_fd_gone(self): method test_open_files_enametoolong (line 1969) | def test_open_files_enametoolong(self): method test_terminal_mocked (line 1988) | def test_terminal_mocked(self): method test_cmdline_mocked (line 1995) | def test_cmdline_mocked(self): method test_cmdline_spaces_mocked (line 2011) | def test_cmdline_spaces_mocked(self): method test_cmdline_mixed_separators (line 2027) | def test_cmdline_mixed_separators(self): method test_readlink_path_deleted_mocked (line 2037) | def test_readlink_path_deleted_mocked(self): method test_threads_mocked (line 2044) | def test_threads_mocked(self): method test_exe_mocked (line 2071) | def test_exe_mocked(self): method test_cwd_mocked (line 2083) | def test_cwd_mocked(self): method test_issue_1014 (line 2092) | def test_issue_1014(self): method test_issue_2418 (line 2103) | def test_issue_2418(self): method test_rlimit_zombie (line 2113) | def test_rlimit_zombie(self): method test_stat_file_parsing (line 2132) | def test_stat_file_parsing(self): method test_status_file_parsing (line 2192) | def test_status_file_parsing(self): method test_net_connections_enametoolong (line 2216) | def test_net_connections_enametoolong(self): method test_create_time_monotonic (line 2229) | def test_create_time_monotonic(self): method test_memory_info_ex (line 2234) | def test_memory_info_ex(self): class TestProcessAgainstStatus (line 2239) | class TestProcessAgainstStatus(LinuxTestCase): method setUpClass (line 2248) | def setUpClass(cls): method read_status_file (line 2251) | def read_status_file(self, linestart): method test_name (line 2265) | def test_name(self): method test_status (line 2269) | def test_status(self): method test_ppid (line 2275) | def test_ppid(self): method test_num_threads (line 2279) | def test_num_threads(self): method test_uids (line 2283) | def test_uids(self): method test_gids (line 2288) | def test_gids(self): method test_num_ctx_switches (line 2294) | def test_num_ctx_switches(self): method test_cpu_affinity (line 2300) | def test_cpu_affinity(self): method test_cpu_affinity_eligible_cpus (line 2306) | def test_cpu_affinity_eligible_cpus(self): class TestUtils (line 2321) | class TestUtils(LinuxTestCase): method test_readlink (line 2322) | def test_readlink(self): FILE: tests/test_memleaks.py class TestProcessObjectLeaks (line 62) | class TestProcessObjectLeaks(MemoryLeakTestCase): method test_coverage (line 67) | def test_coverage(self): method test_name (line 71) | def test_name(self): method test_cmdline (line 74) | def test_cmdline(self): method test_exe (line 79) | def test_exe(self): method test_ppid (line 82) | def test_ppid(self): method test_uids (line 86) | def test_uids(self): method test_gids (line 90) | def test_gids(self): method test_status (line 93) | def test_status(self): method test_nice (line 96) | def test_nice(self): method test_nice_set (line 99) | def test_nice_set(self): method test_ionice (line 104) | def test_ionice(self): method test_ionice_set (line 108) | def test_ionice_set(self): method test_ionice_set_badarg (line 117) | def test_ionice_set_badarg(self): method test_io_counters (line 122) | def test_io_counters(self): method test_username (line 126) | def test_username(self): method test_create_time (line 131) | def test_create_time(self): method test_num_threads (line 135) | def test_num_threads(self): method test_num_handles (line 139) | def test_num_handles(self): method test_num_fds (line 143) | def test_num_fds(self): method test_num_ctx_switches (line 146) | def test_num_ctx_switches(self): method test_threads (line 150) | def test_threads(self): method test_cpu_times (line 154) | def test_cpu_times(self): method test_cpu_num (line 158) | def test_cpu_num(self): method test_memory_info (line 161) | def test_memory_info(self): method test_memory_info_ex (line 164) | def test_memory_info_ex(self): method test_memory_footprint (line 168) | def test_memory_footprint(self): method test_terminal (line 172) | def test_terminal(self): method test_resume (line 175) | def test_resume(self): method test_cwd (line 179) | def test_cwd(self): method test_cpu_affinity (line 183) | def test_cpu_affinity(self): method test_cpu_affinity_set (line 187) | def test_cpu_affinity_set(self): method test_cpu_affinity_set_badarg (line 192) | def test_cpu_affinity_set_badarg(self): method test_open_files (line 197) | def test_open_files(self): method test_memory_maps (line 204) | def test_memory_maps(self): method test_page_faults (line 207) | def test_page_faults(self): method test_rlimit (line 212) | def test_rlimit(self): method test_rlimit_set (line 217) | def test_rlimit_set(self): method test_rlimit_set_badarg (line 223) | def test_rlimit_set_badarg(self): method test_net_connections (line 231) | def test_net_connections(self): method test_environ (line 241) | def test_environ(self): method test_proc_oneshot (line 245) | def test_proc_oneshot(self): class TestTerminatedProcessLeaks (line 249) | class TestTerminatedProcessLeaks(TestProcessObjectLeaks): method setUpClass (line 257) | def setUpClass(cls): method tearDownClass (line 265) | def tearDownClass(cls): method call (line 269) | def call(self, fun): method test_cpu_affinity_set_badarg (line 275) | def test_cpu_affinity_set_badarg(self): method test_kill (line 280) | def test_kill(self): method test_terminate (line 283) | def test_terminate(self): method test_suspend (line 286) | def test_suspend(self): method test_resume (line 289) | def test_resume(self): method test_wait (line 292) | def test_wait(self): method test_proc_oneshot (line 295) | def test_proc_oneshot(self): class TestProcessDualImplementation (line 307) | class TestProcessDualImplementation(MemoryLeakTestCase): method test_cmdline_peb_true (line 308) | def test_cmdline_peb_true(self): method test_cmdline_peb_false (line 311) | def test_cmdline_peb_false(self): class TestModuleFunctionsLeaks (line 320) | class TestModuleFunctionsLeaks(MemoryLeakTestCase): method test_coverage (line 323) | def test_coverage(self): method test_cpu_count (line 329) | def test_cpu_count(self): # logical method test_cpu_count_cores (line 332) | def test_cpu_count_cores(self): method test_cpu_times (line 335) | def test_cpu_times(self): method test_per_cpu_times (line 338) | def test_per_cpu_times(self): method test_cpu_stats (line 341) | def test_cpu_stats(self): method test_cpu_freq (line 345) | def test_cpu_freq(self): method test_getloadavg (line 350) | def test_getloadavg(self): method test_virtual_memory (line 356) | def test_virtual_memory(self): method test_swap_memory (line 361) | def test_swap_memory(self): method test_pid_exists (line 364) | def test_pid_exists(self): method test_disk_usage (line 370) | def test_disk_usage(self): method test_disk_partitions (line 374) | def test_disk_partitions(self): method test_disk_io_counters (line 381) | def test_disk_io_counters(self): method test_pids (line 386) | def test_pids(self): method test_net_io_counters (line 392) | def test_net_io_counters(self): method test_net_connections (line 396) | def test_net_connections(self): method test_net_if_addrs (line 405) | def test_net_if_addrs(self): method test_net_if_stats (line 418) | def test_net_if_stats(self): method test_sensors_battery (line 424) | def test_sensors_battery(self): method test_sensors_temperatures (line 429) | def test_sensors_temperatures(self): method test_sensors_fans (line 434) | def test_sensors_fans(self): method test_boot_time (line 440) | def test_boot_time(self): method test_users (line 443) | def test_users(self): method test_set_debug (line 452) | def test_set_debug(self): method test_heap_info (line 456) | def test_heap_info(self): method test_heap_trim (line 460) | def test_heap_trim(self): method test_win_service_iter (line 467) | def test_win_service_iter(self): method test_win_service_get (line 470) | def test_win_service_get(self): method test_win_service_get_config (line 473) | def test_win_service_get_config(self): method test_win_service_get_status (line 477) | def test_win_service_get_status(self): method test_win_service_get_description (line 481) | def test_win_service_get_description(self): FILE: tests/test_misc.py class TestSpecialMethods (line 42) | class TestSpecialMethods(PsutilTestCase): method test_check_pid_range (line 43) | def test_check_pid_range(self): method test_process__repr__ (line 49) | def test_process__repr__(self, func=repr): method test_process__str__ (line 93) | def test_process__str__(self): method test_error__repr__ (line 96) | def test_error__repr__(self): method test_error__str__ (line 99) | def test_error__str__(self): method test_no_such_process__repr__ (line 102) | def test_no_such_process__repr__(self): method test_no_such_process__str__ (line 112) | def test_no_such_process__str__(self): method test_zombie_process__repr__ (line 122) | def test_zombie_process__repr__(self): method test_zombie_process__str__ (line 134) | def test_zombie_process__str__(self): method test_access_denied__repr__ (line 144) | def test_access_denied__repr__(self): method test_access_denied__str__ (line 151) | def test_access_denied__str__(self): method test_timeout_expired__repr__ (line 158) | def test_timeout_expired__repr__(self): method test_timeout_expired__str__ (line 170) | def test_timeout_expired__str__(self): method test_process__eq__ (line 177) | def test_process__eq__(self): method test_process__hash__ (line 185) | def test_process__hash__(self): class TestMisc (line 195) | class TestMisc(PsutilTestCase): method test__all__ (line 196) | def test__all__(self): method test_version (line 232) | def test_version(self): method test_process_as_dict_no_new_names (line 238) | def test_process_as_dict_no_new_names(self): method test_serialization (line 244) | def test_serialization(self): method test_ad_on_process_creation (line 322) | def test_ad_on_process_creation(self): method test_sanity_version_check (line 351) | def test_sanity_version_check(self): class TestCommonModule (line 366) | class TestCommonModule(PsutilTestCase): method test_memoize_when_activated (line 367) | def test_memoize_when_activated(self): method test_parse_environ_block (line 393) | def test_parse_environ_block(self): method test_supports_ipv6 (line 414) | def test_supports_ipv6(self): method test_isfile_strict (line 446) | def test_isfile_strict(self): method test_debug (line 460) | def test_debug(self): method test_cat_bcat (line 488) | def test_cat_bcat(self): class TestWrapNumbers (line 510) | class TestWrapNumbers(PsutilTestCase): method setUp (line 511) | def setUp(self): method test_first_call (line 516) | def test_first_call(self): method test_input_hasnt_changed (line 520) | def test_input_hasnt_changed(self): method test_increase_but_no_wrap (line 525) | def test_increase_but_no_wrap(self): method test_wrap (line 535) | def test_wrap(self): method test_changing_keys (line 564) | def test_changing_keys(self): method test_changing_keys_w_wrap (line 575) | def test_changing_keys_w_wrap(self): method test_real_data (line 602) | def test_real_data(self): method test_cache_first_call (line 623) | def test_cache_first_call(self): method test_cache_call_twice (line 631) | def test_cache_call_twice(self): method test_cache_wrap (line 643) | def test_cache_wrap(self): method test_cache_changing_keys (line 693) | def test_cache_changing_keys(self): method test_cache_clear (line 705) | def test_cache_clear(self): method test_cache_clear_public_apis (line 715) | def test_cache_clear_public_apis(self): FILE: tests/test_osx.py function sysctl (line 29) | def sysctl(cmdline): function vm_stat (line 41) | def vm_stat(field): class MacosTestCase (line 56) | class MacosTestCase(PsutilTestCase): class TestProcess (line 60) | class TestProcess(MacosTestCase): method setUpClass (line 62) | def setUpClass(cls): method tearDownClass (line 66) | def tearDownClass(cls): method test_process_create_time (line 69) | def test_process_create_time(self): class TestSystemAPIs (line 81) | class TestSystemAPIs(MacosTestCase): method test_disks (line 86) | def test_disks(self): method test_cpu_count_logical (line 112) | def test_cpu_count_logical(self): method test_cpu_count_cores (line 116) | def test_cpu_count_cores(self): method test_cpu_freq (line 124) | def test_cpu_freq(self): method test_vmem_total (line 132) | def test_vmem_total(self): method test_vmem_free (line 141) | def test_vmem_free(self): method test_vmem_active (line 151) | def test_vmem_active(self): method test_vmem_inactive (line 159) | def test_vmem_inactive(self): method test_vmem_wired (line 165) | def test_vmem_wired(self): method test_swapmem_sin (line 173) | def test_swapmem_sin(self): method test_swapmem_sout (line 179) | def test_swapmem_sout(self): method test_net_if_stats (line 186) | def test_net_if_stats(self): method test_sensors_battery (line 199) | def test_sensors_battery(self): method test_boot_time (line 210) | def test_boot_time(self): FILE: tests/test_posix.py function ps (line 43) | def ps(fmt, pid=None): function ps_name (line 98) | def ps_name(pid): function ps_args (line 106) | def ps_args(pid): function ps_rss (line 116) | def ps_rss(pid): function ps_vsz (line 123) | def ps_vsz(pid): function df (line 130) | def df(device): class PosixTestCase (line 147) | class PosixTestCase(PsutilTestCase): class TestProcess (line 151) | class TestProcess(PosixTestCase): method setUpClass (line 155) | def setUpClass(cls): method tearDownClass (line 161) | def tearDownClass(cls): method test_ppid (line 164) | def test_ppid(self): method test_uid (line 169) | def test_uid(self): method test_gid (line 174) | def test_gid(self): method test_username (line 179) | def test_username(self): method test_username_no_resolution (line 184) | def test_username_no_resolution(self): method test_rss_memory (line 195) | def test_rss_memory(self): method test_vsz_memory (line 205) | def test_vsz_memory(self): method test_name (line 213) | def test_name(self): method test_name_long (line 227) | def test_name_long(self): method test_name_long_cmdline_ad_exc (line 240) | def test_name_long_cmdline_ad_exc(self): method test_name_long_cmdline_nsp_exc (line 253) | def test_name_long_cmdline_nsp_exc(self): method test_create_time (line 267) | def test_create_time(self): method test_exe (line 281) | def test_exe(self): method test_cmdline (line 302) | def test_cmdline(self): method test_nice (line 317) | def test_nice(self): method test_num_ctx_switches (line 323) | def test_num_ctx_switches(self): method test_cpu_times (line 338) | def test_cpu_times(self): method test_page_faults (line 345) | def test_page_faults(self): method test_page_faults_minor_increase (line 353) | def test_page_faults_minor_increase(self): method test_memory_peak_rss (line 364) | def test_memory_peak_rss(self): class TestSystemAPIs (line 378) | class TestSystemAPIs(PosixTestCase): method test_pids (line 382) | def test_pids(self): method test_nic_names (line 404) | def test_nic_names(self): method test_users (line 417) | def test_users(self): method test_users_started (line 448) | def test_users_started(self): method test_pid_exists_let_raise (line 484) | def test_pid_exists_let_raise(self): method test_disk_usage (line 498) | def test_disk_usage(self): class TestMisc (line 523) | class TestMisc(PosixTestCase): method test_getpagesize (line 524) | def test_getpagesize(self): FILE: tests/test_process.py class TestProcess (line 77) | class TestProcess(PsutilTestCase): method test_pid (line 80) | def test_pid(self): method test_kill (line 86) | def test_kill(self): method test_terminate (line 96) | def test_terminate(self): method test_send_signal (line 106) | def test_send_signal(self): method test_send_signal_mocked (line 118) | def test_send_signal_mocked(self): method test_cpu_percent (line 130) | def test_cpu_percent(self): method test_cpu_percent_numcpus_none (line 141) | def test_cpu_percent_numcpus_none(self): method test_cpu_times (line 147) | def test_cpu_times(self): method test_cpu_num (line 160) | def test_cpu_num(self): method test_create_time (line 168) | def test_create_time(self): method test_terminal (line 177) | def test_terminal(self): method test_io_counters (line 190) | def test_io_counters(self): method test_ionice_linux (line 230) | def test_ionice_linux(self): method test_ionice_win (line 277) | def test_ionice_win(self): method test_rlimit_get (line 304) | def test_rlimit_get(self): method test_rlimit_set (line 328) | def test_rlimit_set(self): method test_rlimit (line 341) | def test_rlimit(self): method test_rlimit_infinity (line 360) | def test_rlimit_infinity(self): method test_rlimit_infinity_value (line 375) | def test_rlimit_infinity_value(self): method test_num_threads (line 387) | def test_num_threads(self): method test_num_handles (line 405) | def test_num_handles(self): method test_threads (line 411) | def test_threads(self): method test_threads_2 (line 433) | def test_threads_2(self): method test_memory_info (line 450) | def test_memory_info(self): method test_memory_info_ex (line 472) | def test_memory_info_ex(self): method test_memory_info_ex_fields_order (line 482) | def test_memory_info_ex_fields_order(self): method test_memory_footprint (line 523) | def test_memory_footprint(self): method test_memory_full_info (line 528) | def test_memory_full_info(self): method test_memory_maps (line 545) | def test_memory_maps(self): method test_memory_maps_lists_lib (line 594) | def test_memory_maps_lists_lib(self): method test_memory_percent (line 605) | def test_memory_percent(self): method test_page_faults (line 613) | def test_page_faults(self): method test_is_running (line 619) | def test_is_running(self): method test_exe (line 628) | def test_exe(self): method test_cmdline (line 655) | def test_cmdline(self): method test_long_cmdline (line 682) | def test_long_cmdline(self): method test_name (line 708) | def test_name(self): method test_long_name (line 717) | def test_long_name(self): method test_uids (line 744) | def test_uids(self): method test_gids (line 757) | def test_gids(self): method test_nice (line 769) | def test_nice(self): method test_status (line 835) | def test_status(self): method test_username (line 839) | def test_username(self): method test_cwd (line 856) | def test_cwd(self): method test_cwd_2 (line 860) | def test_cwd_2(self): method test_cpu_affinity (line 873) | def test_cpu_affinity(self): method test_cpu_affinity_errs (line 912) | def test_cpu_affinity_errs(self): method test_cpu_affinity_all_combinations (line 925) | def test_cpu_affinity_all_combinations(self): method test_open_files (line 948) | def test_open_files(self): method test_open_files_2 (line 987) | def test_open_files_2(self): method test_num_fds (line 1015) | def test_num_fds(self): method test_num_ctx_switches (line 1029) | def test_num_ctx_switches(self): method test_ppid (line 1041) | def test_ppid(self): method test_parent (line 1048) | def test_parent(self): method test_parent_mocked_ctime (line 1055) | def test_parent_mocked_ctime(self): method test_parent_multi (line 1067) | def test_parent_multi(self): method test_parents (line 1074) | def test_parents(self): method test_children (line 1082) | def test_children(self): method test_children_mocked_ctime (line 1097) | def test_children_mocked_ctime(self): method test_children_recursive (line 1121) | def test_children_recursive(self): method test_children_duplicates (line 1134) | def test_children_duplicates(self): method test_parents_and_children (line 1154) | def test_parents_and_children(self): method test_suspend_resume (line 1167) | def test_suspend_resume(self): method test_invalid_pid (line 1177) | def test_invalid_pid(self): method test_as_dict (line 1183) | def test_as_dict(self): method test_oneshot (line 1235) | def test_oneshot(self): method test_oneshot_twice (line 1248) | def test_oneshot_twice(self): method test_oneshot_cache (line 1268) | def test_oneshot_cache(self): method test_halfway_terminated_process (line 1283) | def test_halfway_terminated_process(self): method test_zombie_process (line 1322) | def test_zombie_process(self): method test_zombie_process_is_running_w_exc (line 1333) | def test_zombie_process_is_running_w_exc(self): method test_zombie_process_status_w_exc (line 1344) | def test_zombie_process_status_w_exc(self): method test_reused_pid (line 1355) | def test_reused_pid(self): method test_pid_0 (line 1396) | def test_pid_0(self): method test_environ (line 1443) | def test_environ(self): method test_weird_environ (line 1478) | def test_weird_environ(self): class TestProcessWait (line 1523) | class TestProcessWait(PsutilTestCase): method test_wait_exited (line 1525) | def test_wait_exited(self): method test_wait_signaled (line 1553) | def test_wait_signaled(self): method test_wait_stopped (line 1567) | def test_wait_stopped(self): method test_wait_non_children (line 1592) | def test_wait_non_children(self): method test_wait_timeout (line 1615) | def test_wait_timeout(self): method test_wait_timeout_nonblocking (line 1623) | def test_wait_timeout_nonblocking(self): method test_wait_errors (line 1643) | def test_wait_errors(self): method test_wait_zombie (line 1654) | def test_wait_zombie(self): method test_os_waitpid_error (line 1665) | def test_os_waitpid_error(self): method test_os_waitpid_bad_ret_status (line 1676) | def test_os_waitpid_bad_ret_status(self): method assert_wait_pid_errors (line 1685) | def assert_wait_pid_errors(self, patch_target, wait_func, errors): method test_pidfd_open_errors (line 1707) | def test_pidfd_open_errors(self): method test_kqueue_errors (line 1719) | def test_kqueue_errors(self): method assert_wait_pid_race (line 1728) | def assert_wait_pid_race(self, patch_target, real_func): method test_pidfd_open_race (line 1748) | def test_pidfd_open_race(self): method test_kqueue_race (line 1754) | def test_kqueue_race(self): method test_kqueue_control_errors (line 1760) | def test_kqueue_control_errors(self): class TestPopen (line 1796) | class TestPopen(PsutilTestCase): method tearDownClass (line 1800) | def tearDownClass(cls): method test_misc (line 1804) | def test_misc(self): method test_ctx_manager (line 1831) | def test_ctx_manager(self): method test_kill_terminate (line 1845) | def test_kill_terminate(self): method test__getattribute__ (line 1874) | def test__getattribute__(self): FILE: tests/test_process_all.py function proc_info (line 49) | def proc_info(pid): class TestFetchAllProcesses (line 103) | class TestFetchAllProcesses(PsutilTestCase): method setUp (line 109) | def setUp(self): method tearDown (line 123) | def tearDown(self): method iter_proc_info (line 129) | def iter_proc_info(self): method test_all (line 140) | def test_all(self): method cmdline (line 164) | def cmdline(self, ret, info): method exe (line 169) | def exe(self, ret, info): method pid (line 188) | def pid(self, ret, info): method ppid (line 192) | def ppid(self, ret, info): method name (line 197) | def name(self, ret, info): method create_time (line 206) | def create_time(self, ret, info): method uids (line 222) | def uids(self, ret, info): method gids (line 227) | def gids(self, ret, info): method username (line 235) | def username(self, ret, info): method status (line 240) | def status(self, ret, info): method io_counters (line 246) | def io_counters(self, ret, info): method ionice (line 252) | def ionice(self, ret, info): method num_threads (line 269) | def num_threads(self, ret, info): method threads (line 276) | def threads(self, ret, info): method cpu_times (line 285) | def cpu_times(self, ret, info): method cpu_percent (line 291) | def cpu_percent(self, ret, info): method cpu_num (line 295) | def cpu_num(self, ret, info): method memory_info (line 304) | def memory_info(self, ret, info): method memory_info_ex (line 307) | def memory_info_ex(self, ret, info): method memory_footprint (line 310) | def memory_footprint(self, ret, info): method open_files (line 316) | def open_files(self, ret, info): method num_fds (line 342) | def num_fds(self, ret, info): method net_connections (line 346) | def net_connections(self, ret, info): method cwd (line 352) | def cwd(self, ret, info): method memory_percent (line 368) | def memory_percent(self, ret, info): method is_running (line 372) | def is_running(self, ret, info): method cpu_affinity (line 375) | def cpu_affinity(self, ret, info): method terminal (line 383) | def terminal(self, ret, info): method memory_maps (line 389) | def memory_maps(self, ret, info): method num_handles (line 416) | def num_handles(self, ret, info): method page_faults (line 420) | def page_faults(self, ret, info): method nice (line 426) | def nice(self, ret, info): method num_ctx_switches (line 439) | def num_ctx_switches(self, ret, info): method rlimit (line 444) | def rlimit(self, ret, info): method environ (line 450) | def environ(self, ret, info): class TestPidsRange (line 457) | class TestPidsRange(PsutilTestCase): method setUp (line 474) | def setUp(self): method tearDown (line 477) | def tearDown(self): method test_it (line 480) | def test_it(self): FILE: tests/test_scripts.py class TestExampleScripts (line 48) | class TestExampleScripts(PsutilTestCase): method assert_stdout (line 50) | def assert_stdout(exe, *args): method assert_syntax (line 66) | def assert_syntax(exe): method test_coverage (line 72) | def test_coverage(self): method test_executable (line 85) | def test_executable(self): method test_disk_usage (line 93) | def test_disk_usage(self): method test_free (line 96) | def test_free(self): method test_meminfo (line 99) | def test_meminfo(self): method test_procinfo (line 102) | def test_procinfo(self): method test_who (line 106) | def test_who(self): method test_ps (line 109) | def test_ps(self): method test_pstree (line 112) | def test_pstree(self): method test_netstat (line 115) | def test_netstat(self): method test_ifconfig (line 118) | def test_ifconfig(self): method test_pmap (line 122) | def test_pmap(self): method test_procsmem (line 126) | def test_procsmem(self): method test_killall (line 129) | def test_killall(self): method test_nettop (line 132) | def test_nettop(self): method test_top (line 135) | def test_top(self): method test_iotop (line 138) | def test_iotop(self): method test_pidof (line 141) | def test_pidof(self): method test_winservices (line 146) | def test_winservices(self): method test_cpu_distribution (line 149) | def test_cpu_distribution(self): method test_temperatures (line 153) | def test_temperatures(self): method test_fans (line 159) | def test_fans(self): method test_battery (line 166) | def test_battery(self): method test_sensors (line 171) | def test_sensors(self): class TestInternalScripts (line 184) | class TestInternalScripts(PsutilTestCase): method ls (line 186) | def ls(): method test_syntax_all (line 191) | def test_syntax_all(self): method test_import_all (line 200) | def test_import_all(self): FILE: tests/test_sudo.py function get_systime (line 28) | def get_systime(): function set_systime (line 34) | def set_systime(secs): # secs since the epoch class TestUpdatedSystemTime (line 64) | class TestUpdatedSystemTime(PsutilTestCase): method setUp (line 67) | def setUp(self): method tearDown (line 72) | def tearDown(self): method update_systime (line 77) | def update_systime(self): method test_boot_time (line 82) | def test_boot_time(self): method test_proc_create_time (line 92) | def test_proc_create_time(self): method test_proc_ident (line 105) | def test_proc_ident(self): method test_linux_monotonic_proc_time (line 113) | def test_linux_monotonic_proc_time(self): FILE: tests/test_sunos.py class SunOSSpecificTestCase (line 20) | class SunOSSpecificTestCase(PsutilTestCase): method test_swap_memory (line 21) | def test_swap_memory(self): method test_cpu_count (line 38) | def test_cpu_count(self): FILE: tests/test_system.py class TestProcessIter (line 59) | class TestProcessIter(PsutilTestCase): method test_pid_presence (line 60) | def test_pid_presence(self): method test_no_duplicates (line 69) | def test_no_duplicates(self): method test_emulate_nsp (line 75) | def test_emulate_nsp(self): method test_emulate_access_denied (line 85) | def test_emulate_access_denied(self): method test_attrs (line 96) | def test_attrs(self): method test_cache_clear (line 124) | def test_cache_clear(self): class TestProcessAPIs (line 131) | class TestProcessAPIs(PsutilTestCase): method test_wait_procs (line 136) | def test_wait_procs(self): method test_wait_procs_no_timeout (line 199) | def test_wait_procs_no_timeout(self): method test_pid_exists (line 208) | def test_pid_exists(self): method test_pid_exists_2 (line 218) | def test_pid_exists_2(self): class TestMiscAPIs (line 233) | class TestMiscAPIs(PsutilTestCase): method test_boot_time (line 234) | def test_boot_time(self): method test_users (line 243) | def test_users(self): method test_heap_info (line 263) | def test_heap_info(self): method test_heap_trim (line 274) | def test_heap_trim(self): method test_os_constants (line 277) | def test_os_constants(self): class TestMemoryAPIs (line 327) | class TestMemoryAPIs(PsutilTestCase): method test_virtual_memory (line 328) | def test_virtual_memory(self): method test_virtual_memory_fields_order (line 347) | def test_virtual_memory_fields_order(self): method test_swap_memory (line 383) | def test_swap_memory(self): class TestCpuAPIs (line 406) | class TestCpuAPIs(PsutilTestCase): method test_cpu_count_logical (line 407) | def test_cpu_count_logical(self): method test_cpu_count_cores (line 419) | def test_cpu_count_cores(self): method test_cpu_count_none (line 430) | def test_cpu_count_none(self): method test_cpu_times (line 444) | def test_cpu_times(self): method test_cpu_times_time_increases (line 472) | def test_cpu_times_time_increases(self): method test_per_cpu_times (line 482) | def test_per_cpu_times(self): method test_per_cpu_times_2 (line 515) | def test_per_cpu_times_2(self): method test_cpu_times_comparison (line 534) | def test_cpu_times_comparison(self): method _test_cpu_percent (line 550) | def _test_cpu_percent(self, percent, last_ret, new_ret): method test_cpu_percent (line 562) | def test_cpu_percent(self): method test_per_cpu_percent (line 571) | def test_per_cpu_percent(self): method test_cpu_times_percent (line 582) | def test_cpu_times_percent(self): method test_per_cpu_times_percent (line 593) | def test_per_cpu_times_percent(self): method test_per_cpu_times_percent_negative (line 604) | def test_per_cpu_times_percent_negative(self): method test_cpu_stats (line 616) | def test_cpu_stats(self): method test_cpu_freq (line 633) | def test_cpu_freq(self): method test_getloadavg (line 654) | def test_getloadavg(self): class TestDiskAPIs (line 662) | class TestDiskAPIs(PsutilTestCase): method test_disk_usage (line 663) | def test_disk_usage(self): method test_disk_usage_unicode (line 688) | def test_disk_usage_unicode(self): method test_disk_usage_bytes (line 693) | def test_disk_usage_bytes(self): method test_disk_partitions (line 696) | def test_disk_partitions(self): method test_disk_io_counters (line 760) | def test_disk_io_counters(self): method test_disk_io_counters_no_disks (line 788) | def test_disk_io_counters_no_disks(self): class TestNetAPIs (line 799) | class TestNetAPIs(PsutilTestCase): method test_net_io_counters (line 801) | def test_net_io_counters(self): method test_net_io_counters_no_nics (line 830) | def test_net_io_counters_no_nics(self): method test_net_if_addrs (line 840) | def test_net_if_addrs(self): method test_net_if_addrs_mac_null_bytes (line 915) | def test_net_if_addrs_mac_null_bytes(self): method test_net_if_stats (line 933) | def test_net_if_stats(self): method test_net_if_stats_enodev (line 954) | def test_net_if_stats_enodev(self): class TestSensorsAPIs (line 965) | class TestSensorsAPIs(PsutilTestCase): method test_sensors_temperatures (line 967) | def test_sensors_temperatures(self): method test_sensors_temperatures_fahreneit (line 981) | def test_sensors_temperatures_fahreneit(self): method test_sensors_battery (line 994) | def test_sensors_battery(self): method test_sensors_fans (line 1008) | def test_sensors_fans(self): FILE: tests/test_testutils.py class TestRetryDecorator (line 56) | class TestRetryDecorator(PsutilTestCase): method test_retry_success (line 58) | def test_retry_success(self, sleep): method test_retry_failure (line 73) | def test_retry_failure(self, sleep): method test_exception_arg (line 88) | def test_exception_arg(self, sleep): method test_no_interval_arg (line 98) | def test_no_interval_arg(self, sleep): method test_retries_arg (line 110) | def test_retries_arg(self, sleep): method test_retries_and_timeout_args (line 120) | def test_retries_and_timeout_args(self, sleep): class TestSyncTestUtils (line 125) | class TestSyncTestUtils(PsutilTestCase): method test_wait_for_pid (line 126) | def test_wait_for_pid(self): method test_wait_for_file (line 133) | def test_wait_for_file(self): method test_wait_for_file_empty (line 140) | def test_wait_for_file_empty(self): method test_wait_for_file_no_file (line 147) | def test_wait_for_file_no_file(self): method test_wait_for_file_no_delete (line 153) | def test_wait_for_file_no_delete(self): method test_call_until (line 160) | def test_call_until(self): class TestFSTestUtils (line 165) | class TestFSTestUtils(PsutilTestCase): method test_open_text (line 166) | def test_open_text(self): method test_open_binary (line 170) | def test_open_binary(self): method test_safe_mkdir (line 174) | def test_safe_mkdir(self): method test_safe_rmpath (line 181) | def test_safe_rmpath(self): method test_chdir (line 201) | def test_chdir(self): class TestProcessUtils (line 210) | class TestProcessUtils(PsutilTestCase): method test_reap_children (line 211) | def test_reap_children(self): method test_spawn_children_pair (line 220) | def test_spawn_children_pair(self): method test_spawn_zombie (line 242) | def test_spawn_zombie(self): method test_terminate (line 246) | def test_terminate(self): class TestNetUtils (line 286) | class TestNetUtils(PsutilTestCase): method bind_socket (line 287) | def bind_socket(self): method test_bind_unix_socket (line 293) | def test_bind_unix_socket(self): method test_tcp_socketpair (line 306) | def test_tcp_socketpair(self): method test_unix_socketpair (line 322) | def test_unix_socketpair(self): method test_create_sockets (line 344) | def test_create_sockets(self): class TestTestingUtils (line 361) | class TestTestingUtils(PsutilTestCase): method test_process_namespace (line 362) | def test_process_namespace(self): method test_system_namespace (line 369) | def test_system_namespace(self): class TestOtherUtils (line 375) | class TestOtherUtils(PsutilTestCase): method test_is_namedtuple (line 376) | def test_is_namedtuple(self): FILE: tests/test_type_hints.py class TypeHintTestCase (line 28) | class TypeHintTestCase(PsutilTestCase): class TestTypeHintsNtuples (line 37) | class TestTypeHintsNtuples(TypeHintTestCase): method check_result (line 42) | def check_result(self, ret): method test_system_ntuple_types (line 50) | def test_system_ntuple_types(self): method test_process_ntuple_types (line 67) | def test_process_ntuple_types(self): class TestTypeHintsReturned (line 84) | class TestTypeHintsReturned(TypeHintTestCase): method check (line 89) | def check(self, fun, name): method test_system_return_types (line 96) | def test_system_return_types(self): method test_process_return_types (line 101) | def test_process_return_types(self): class TestCheckNtupleTypeHints (line 114) | class TestCheckNtupleTypeHints(TypeHintTestCase): method test_not_namedtuple (line 115) | def test_not_namedtuple(self): method test_ok (line 120) | def test_ok(self): method test_wrong_type (line 126) | def test_wrong_type(self): method test_union_with_none (line 136) | def test_union_with_none(self): method test_intenum_broadening (line 145) | def test_intenum_broadening(self): class TestCheckFunTypeHints (line 158) | class TestCheckFunTypeHints(TypeHintTestCase): method test_no_annotation (line 163) | def test_no_annotation(self): method test_float (line 170) | def test_float(self): method test_bool (line 178) | def test_bool(self): method test_list (line 189) | def test_list(self): method test_list_container (line 200) | def test_list_container(self): method test_dict (line 211) | def test_dict(self): method test_dict_container (line 222) | def test_dict_container(self): method test_namedtuple (line 230) | def test_namedtuple(self): method test_union_with_none (line 243) | def test_union_with_none(self): method test_union_or_dict_or_none (line 255) | def test_union_or_dict_or_none(self): method test_generator (line 265) | def test_generator(self): method test_partial (line 275) | def test_partial(self): method test_bound_method (line 284) | def test_bound_method(self): FILE: tests/test_unicode.py function try_unicode (line 105) | def try_unicode(suffix): class BaseUnicodeTest (line 132) | class BaseUnicodeTest(PsutilTestCase): method setUpClass (line 136) | def setUpClass(cls): method setUp (line 147) | def setUp(self): class TestFSAPIs (line 155) | class TestFSAPIs(BaseUnicodeTest): method expect_exact_path_match (line 160) | def expect_exact_path_match(self): method test_proc_exe (line 167) | def test_proc_exe(self): method test_proc_name (line 180) | def test_proc_name(self): method test_proc_cmdline (line 192) | def test_proc_cmdline(self): method test_proc_cwd (line 206) | def test_proc_cwd(self): method test_proc_open_files (line 221) | def test_proc_open_files(self): method test_proc_net_connections (line 238) | def test_proc_net_connections(self): method test_net_connections (line 253) | def test_net_connections(self): method test_disk_usage (line 268) | def test_disk_usage(self): method test_memory_maps (line 275) | def test_memory_maps(self): class TestFSAPIsWithInvalidPath (line 292) | class TestFSAPIsWithInvalidPath(TestFSAPIs): method expect_exact_path_match (line 297) | def expect_exact_path_match(self): class TestNonFSAPIS (line 306) | class TestNonFSAPIS(BaseUnicodeTest): method test_proc_environ (line 313) | def test_proc_environ(self): FILE: tests/test_windows.py class WindowsTestCase (line 59) | class WindowsTestCase(PsutilTestCase): method OpenProcess (line 61) | def OpenProcess(self, pid=None): function is_bash_env (line 72) | def is_bash_env(): function powershell (line 79) | def powershell(cmd): function wmic (line 102) | def wmic(path, what, converter=int): class TestCpuAPIs (line 124) | class TestCpuAPIs(WindowsTestCase): method test_cpu_count_vs_NUMBER_OF_PROCESSORS (line 129) | def test_cpu_count_vs_NUMBER_OF_PROCESSORS(self): method test_cpu_count_vs_GetSystemInfo (line 135) | def test_cpu_count_vs_GetSystemInfo(self): method test_cpu_count_logical_vs_wmi (line 140) | def test_cpu_count_logical_vs_wmi(self): method test_cpu_count_cores_vs_wmi (line 147) | def test_cpu_count_cores_vs_wmi(self): method test_cpu_count_vs_cpu_times (line 152) | def test_cpu_count_vs_cpu_times(self): method test_cpu_times_irq_field (line 155) | def test_cpu_times_irq_field(self): method test_cpu_freq (line 161) | def test_cpu_freq(self): class TestVirtualMemory (line 168) | class TestVirtualMemory(WindowsTestCase): method test_total (line 170) | def test_total(self): method test_free (line 174) | def test_free(self): method test_wired (line 182) | def test_wired(self): class TestSystemAPIs (line 190) | class TestSystemAPIs(WindowsTestCase): method test_nic_names (line 191) | def test_nic_names(self): method test_net_if_addrs (line 202) | def test_net_if_addrs(self): method test_net_connections (line 214) | def test_net_connections(self): method test_total_swapmem (line 228) | def test_total_swapmem(self): method test_percent_swapmem (line 238) | def test_percent_swapmem(self): method test_pids (line 262) | def test_pids(self): method test_disks (line 271) | def test_disks(self): method test_disk_usage (line 302) | def test_disk_usage(self): method test_disk_partitions (line 312) | def test_disk_partitions(self): method test_convert_dos_path_drive (line 325) | def test_convert_dos_path_drive(self): method test_convert_dos_path_unc (line 345) | def test_convert_dos_path_unc(self): method test_net_if_stats (line 357) | def test_net_if_stats(self): method test_boot_time (line 368) | def test_boot_time(self): method test_uptime (line 378) | def test_uptime(self): class TestSensorsBattery (line 391) | class TestSensorsBattery(WindowsTestCase): method test_has_battery (line 392) | def test_has_battery(self): method test_percent (line 399) | def test_percent(self): method test_power_plugged (line 409) | def test_power_plugged(self): method test_secsleft (line 418) | def test_secsleft(self): method test_emulate_no_battery (line 440) | def test_emulate_no_battery(self): method test_emulate_power_connected (line 448) | def test_emulate_power_connected(self): method test_emulate_power_charging (line 458) | def test_emulate_power_charging(self): method test_emulate_secs_left_unknown (line 468) | def test_emulate_secs_left_unknown(self): class TestProcess (line 484) | class TestProcess(WindowsTestCase): method setUpClass (line 486) | def setUpClass(cls): method tearDownClass (line 490) | def tearDownClass(cls): method test_issue_24 (line 493) | def test_issue_24(self): method test_special_pid (line 498) | def test_special_pid(self): method test_send_signal (line 515) | def test_send_signal(self): method test_num_handles_increment (line 520) | def test_num_handles_increment(self): method test_ctrl_signals (line 529) | def test_ctrl_signals(self): method test_username (line 540) | def test_username(self): method test_cmdline (line 549) | def test_cmdline(self): method test_nice (line 568) | def test_nice(self): method test_memory_info (line 573) | def test_memory_info(self): method test_memory_info_deprecated_fields (line 583) | def test_memory_info_deprecated_fields(self): method test_memory_info_ex (line 629) | def test_memory_info_ex(self): method test_wait (line 644) | def test_wait(self): method test_num_threads (line 651) | def test_num_threads(self): method test_cpu_affinity (line 656) | def test_cpu_affinity(self): method test_io_counters (line 666) | def test_io_counters(self): method test_num_handles (line 676) | def test_num_handles(self): method test_error_partial_copy (line 691) | def test_error_partial_copy(self): method test_exe (line 702) | def test_exe(self): method test_page_faults (line 711) | def test_page_faults(self): class TestProcessWMI (line 722) | class TestProcessWMI(WindowsTestCase): method setUpClass (line 726) | def setUpClass(cls): method tearDownClass (line 730) | def tearDownClass(cls): method test_name (line 733) | def test_name(self): method test_exe (line 742) | def test_exe(self): method test_cmdline (line 749) | def test_cmdline(self): method test_username (line 754) | def test_username(self): method test_memory_rss (line 762) | def test_memory_rss(self): method test_memory_vms (line 769) | def test_memory_vms(self): method test_cpu_times (line 781) | def test_cpu_times(self): method test_ppid (line 788) | def test_ppid(self): method test_create_time (line 793) | def test_create_time(self): class TestDualProcessImplementation (line 807) | class TestDualProcessImplementation(PsutilTestCase): method setUpClass (line 818) | def setUpClass(cls): method tearDownClass (line 822) | def tearDownClass(cls): method test_memory_info (line 825) | def test_memory_info(self): method test_create_time (line 839) | def test_create_time(self): method test_cpu_times (line 848) | def test_cpu_times(self): method test_io_counters (line 859) | def test_io_counters(self): method test_num_handles (line 870) | def test_num_handles(self): method test_cmdline (line 879) | def test_cmdline(self): class RemoteProcessTestCase (line 895) | class RemoteProcessTestCase(PsutilTestCase): method find_other_interpreter (line 903) | def find_other_interpreter(): method setUp (line 922) | def setUp(self): method tearDown (line 946) | def tearDown(self): method test_cmdline_32 (line 951) | def test_cmdline_32(self): method test_cmdline_64 (line 956) | def test_cmdline_64(self): method test_cwd_32 (line 961) | def test_cwd_32(self): method test_cwd_64 (line 965) | def test_cwd_64(self): method test_environ_32 (line 969) | def test_environ_32(self): method test_environ_64 (line 975) | def test_environ_64(self): class TestServices (line 989) | class TestServices(PsutilTestCase): method test_win_service_iter (line 990) | def test_win_service_iter(self): method test_win_service_get (line 1039) | def test_win_service_get(self):