summaryrefslogtreecommitdiff
path: root/psutil/_psbsd.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-02-14 20:33:58 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-02-14 20:33:58 +0100
commit7ff84c208af10e618e23aacb3691c668eb25a12d (patch)
tree22dd39ac632c25fad7ef8205c9fd3f66a09bcffb /psutil/_psbsd.py
parentdeb5ec3e7042fd7639fe27f50336b041c9b40c69 (diff)
downloadpsutil-7ff84c208af10e618e23aacb3691c668eb25a12d.tar.gz
cosmetic changes
Diffstat (limited to 'psutil/_psbsd.py')
-rw-r--r--psutil/_psbsd.py29
1 files changed, 15 insertions, 14 deletions
diff --git a/psutil/_psbsd.py b/psutil/_psbsd.py
index 72ef71e8..fc5e1dc8 100644
--- a/psutil/_psbsd.py
+++ b/psutil/_psbsd.py
@@ -30,7 +30,7 @@ __extra__all__ = []
# =====================================================================
-# --- constants
+# --- globals
# =====================================================================
@@ -126,26 +126,39 @@ kinfo_proc_map = dict(
name=24,
)
+# these get overwritten on "import psutil" from the __init__.py file
+NoSuchProcess = None
+ZombieProcess = None
+AccessDenied = None
+TimeoutExpired = None
+
# =====================================================================
# --- named tuples
# =====================================================================
-# extend base mem ntuple with BSD-specific memory metrics
+# psutil.virtual_memory()
svmem = namedtuple(
'svmem', ['total', 'available', 'percent', 'used', 'free',
'active', 'inactive', 'buffers', 'cached', 'shared', 'wired'])
+# psutil.cpu_times()
scputimes = namedtuple(
'scputimes', ['user', 'nice', 'system', 'idle', 'irq'])
+# psutil.Process.memory_info()
pmem = namedtuple('pmem', ['rss', 'vms', 'text', 'data', 'stack'])
+# psutil.Process.memory_full_info()
pfullmem = pmem
+# psutil.Process.cpu_times()
pcputimes = namedtuple('pcputimes',
['user', 'system', 'children_user', 'children_system'])
+# psutil.Process.memory_maps(grouped=True)
pmmap_grouped = namedtuple(
'pmmap_grouped', 'path rss, private, ref_count, shadow_count')
+# psutil.Process.memory_maps(grouped=False)
pmmap_ext = namedtuple(
'pmmap_ext', 'addr, perms path rss, private, ref_count, shadow_count')
+# psutil.disk_io_counters()
if FREEBSD:
sdiskio = namedtuple('sdiskio', ['read_count', 'write_count',
'read_bytes', 'write_bytes',
@@ -157,18 +170,6 @@ else:
# =====================================================================
-# --- exceptions
-# =====================================================================
-
-
-# these get overwritten on "import psutil" from the __init__.py file
-NoSuchProcess = None
-ZombieProcess = None
-AccessDenied = None
-TimeoutExpired = None
-
-
-# =====================================================================
# --- memory
# =====================================================================