Skip to content

Commit 04b3166

Browse files
committed
update docs
1 parent f4a9a8e commit 04b3166

File tree

1 file changed

+22
-26
lines changed

1 file changed

+22
-26
lines changed

docs/index.rst

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
.. module:: psutil
22
:synopsis: psutil module
33
.. moduleauthor:: Giampaolo Rodola' <[email protected]>
4-
.. note::
5-
This documentation refers to new 3.X version of psutil.
6-
Instructions on how to port existing 1.2.1 code are
7-
`here <http://grodola.blogspot.com/2014/01/psutil-20-porting.html>`__.
8-
Old 1.2.1 documentation is still available
9-
`here <https://code.google.com/p/psutil/wiki/Documentation>`__.
10-
.. versionchanged:: 3.3.0 added support for OpenBSD
11-
.. versionchanged:: 3.4.1 added support for NetBSD
124

135
psutil documentation
146
====================
@@ -27,22 +19,20 @@ Quick links
2719
About
2820
-----
2921

30-
From project's home page:
31-
32-
psutil (python system and process utilities) is a cross-platform library for
33-
retrieving information on running
34-
**processes** and **system utilization** (CPU, memory, disks, network) in
35-
**Python**.
36-
It is useful mainly for **system monitoring**, **profiling** and **limiting
37-
process resources** and **management of running processes**.
38-
It implements many functionalities offered by command line tools
39-
such as: *ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice,
40-
ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap*.
41-
It currently supports **Linux, Windows, OSX, Sun Solaris, FreeBSD, OpenBSD**
42-
and **NetBSD**, both **32-bit** and **64-bit** architectures, with Python
43-
versions from **2.6 to 3.5** (users of Python 2.4 and 2.5 may use
44-
`2.1.3 <https://pypi.python.org/pypi?name=psutil&version=2.1.3&:action=files>`__ version).
45-
`PyPy <http://pypy.org/>`__ is also known to work.
22+
psutil (python system and process utilities) is a cross-platform library for
23+
retrieving information on running
24+
**processes** and **system utilization** (CPU, memory, disks, network) in
25+
**Python**.
26+
It is useful mainly for **system monitoring**, **profiling** and **limiting
27+
process resources** and **management of running processes**.
28+
It implements many functionalities offered by command line tools
29+
such as: *ps, top, lsof, netstat, ifconfig, who, df, kill, free, nice,
30+
ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap*.
31+
It currently supports **Linux, Windows, OSX, Sun Solaris, FreeBSD, OpenBSD**
32+
and **NetBSD**, both **32-bit** and **64-bit** architectures, with Python
33+
versions from **2.6 to 3.5** (users of Python 2.4 and 2.5 may use
34+
`2.1.3 <https://pypi.python.org/pypi?name=psutil&version=2.1.3&:action=files>`__ version).
35+
`PyPy <http://pypy.org/>`__ is also known to work.
4636

4737
The psutil documentation you're reading is distributed as a single HTML page.
4838

@@ -61,6 +51,9 @@ CPU
6151
- **user**
6252
- **system**
6353
- **idle**
54+
55+
Platform-specific fields:
56+
6457
- **nice** *(UNIX)*
6558
- **iowait** *(Linux)*
6659
- **irq** *(Linux, BSD)*
@@ -304,6 +297,9 @@ Disks
304297
- **write_count**: number of writes
305298
- **read_bytes**: number of bytes read
306299
- **write_bytes**: number of bytes written
300+
301+
Platform-specific fields:
302+
307303
- **read_time**: (all except *NetBSD* and *OpenBSD*) time spent reading from
308304
disk (in milliseconds)
309305
- **write_time**: (all except *NetBSD* and *OpenBSD*) time spent writing to disk
@@ -1291,8 +1287,8 @@ Process class
12911287
In order to work around that psutil on Windows Vista (and higher) spawns
12921288
a thread and kills it if it's not responding after 100ms.
12931289
That implies that on Windows this method is not guaranteed to enumerate
1294-
all regular file handles (see full discusion
1295-
`here <https://github.com/giampaolo/psutil/pull/597>`_).
1290+
all regular file handles (see full
1291+
`discussion <https://github.com/giampaolo/psutil/pull/597>`_).
12961292

12971293
.. warning::
12981294
on BSD this method can return files with a 'null' path due to a kernel

0 commit comments

Comments
 (0)