Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix #2238 if cwd() cannot be determined always return "" instead of None | Giampaolo Rodola | 2023-04-17 | 1 | -1/+1 |
| | |||||
* | Fix pylint warnings / cleanup (#2218) | Giampaolo Rodola | 2023-04-01 | 1 | -2/+2 |
| | |||||
* | Add in support for network interface flags. (#2037) | Chris Lalancette | 2022-09-06 | 1 | -2/+5 |
| | | | | Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> | ||||
* | Automatically sort imports (isort CLI tool) (#2033) | Giampaolo Rodola | 2021-12-14 | 1 | -6/+6 |
| | |||||
* | Rename cpu_count_physical() to cpu_count_cores() | Giampaolo Rodola | 2020-12-21 | 1 | -1/+1 |
| | | | | | | | | | | This has always been cause of confusion, e.g. see: https://github.com/giampaolo/psutil/pull/1727#issuecomment-698934643 Removed the reference to "physical" from dostrings, functions and test. I still left it in the doc though, as it's more explanatory. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | [macOS, UNIX] prefer _SC_PAGESIZE over (partially) deprecated getpagesize() ↵ | Giampaolo Rodola | 2020-12-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | (#1891) Add a reusable `psutil_getpagesize()` utility common to all UNIXes. Related to #1885 (`getpagesize()` is deprecated on recent macOS, POSIX.1-2001 and possibly other UNIXes). The problem emerged on macOS but `getpagesize()` is also used in FreeBSD, NetBSD, OpenBSD and AIX, so it makes sense to do this in one place only, similarly to Windows which also provide a `psutil_getpagesize()` utility. Follow cPython's `mmapmodule.c` and `resourcemodule.c` lead and rely on `sysconf(_SC_PAGESIZE)` instead, but leave `getpagesize()` in place as last resort/attempt for systems where it's not deprecated and/or they still legitimately rely on it. Also provide a python wrapper so we can test the return value of this C function against Python's stdlib modules. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com> | ||||
* | disk_partitions() maxfile and maxpath (#1863) | Giampaolo Rodola | 2020-10-24 | 1 | -1/+3 |
| | |||||
* | move custom exceptions in _common.py | Giampaolo Rodola | 2020-01-02 | 1 | -7/+3 |
| | |||||
* | PEP-3151: backport FS exceptions to Python 2 (#1544) | Giampaolo Rodola | 2019-06-28 | 1 | -19/+13 |
| | |||||
* | Connection family/type are not converted to enums (#1535) | Giampaolo Rodola | 2019-06-14 | 1 | -19/+6 |
| | |||||
* | update CREDITS + small style fix | Giampaolo Rodola | 2019-05-08 | 1 | -3/+3 |
| | |||||
* | Fix #1494: [AIX] implement Process.environ() (#1505) (patch by Arnon Yaari) | wiggin15 | 2019-05-07 | 1 | -0/+4 |
| | |||||
* | Fix #1276: [AIX] use getargs to get process cmdline (#1500) (patch by ↵ | wiggin15 | 2019-05-06 | 1 | -11/+7 |
| | | | | @wiggin15) | ||||
* | fix #1486: add wraps() decorator around wrap_exceptions | Giampaolo Rodola | 2019-04-25 | 1 | -1/+2 |
| | |||||
* | refactor/move some utilities into _common.py | Giampaolo Rodola | 2019-04-12 | 1 | -10/+1 |
| | |||||
* | Fix #1329: [AIX] disable some functions based on availability in libperfstat ↵ | wiggin15 | 2019-03-05 | 1 | -12/+17 |
| | | | | (#1349) | ||||
* | fix #1447: we weren't use @wrap_exceptions around oneshot() (doh\!) | Giampaolo Rodola | 2019-03-03 | 1 | -0/+3 |
| | |||||
* | #1291 / OSX: mark memory_maps() as deprecated and make it alwats raise ↵ | Giampaolo Rodola | 2019-02-27 | 1 | -5/+0 |
| | | | | AccessDenied | ||||
* | fix #1402: move psutil exceptions back into __init__.py | Giampaolo Rodola | 2019-02-04 | 1 | -3/+7 |
| | |||||
* | #1373: different approach to oneshot() cache (pass Process instances around ↵ | Giampaolo Rodola | 2018-12-13 | 1 | -7/+7 |
| | | | | - which is faster) | ||||
* | fix failing linux tests | Giampaolo Rodola | 2018-08-13 | 1 | -1/+2 |
| | |||||
* | Fix DeprecationWarning: invalid escape sequence (#1318) | Mickaël Schoentgen | 2018-08-08 | 1 | -2/+2 |
| | |||||
* | rename function arg | Giampaolo Rodola | 2018-03-24 | 1 | -2/+2 |
| | |||||
* | #1174: use TimeoutExpired in wait_pid() | Giampaolo Rodola | 2017-11-13 | 1 | -8/+1 |
| | |||||
* | sort imports by name | Giampaolo Rodola | 2017-11-12 | 1 | -2/+2 |
| | |||||
* | Move exceptions to separate file (#1174) | wiggin15 | 2017-11-12 | 1 | -6/+4 |
| | |||||
* | AIX: implement num_ctx_switches (#1164) | wiggin15 | 2017-10-31 | 1 | -0/+5 |
| | | | | | | * small changes * AIX: implement num_ctx_switches | ||||
* | Fix #1154: remove 'threads' method on older AIX (#1156) | wiggin15 | 2017-10-28 | 1 | -16/+19 |
| | |||||
* | Small changes (#1158) | wiggin15 | 2017-10-26 | 1 | -16/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix valid_types in memory_percent pfullmem._fields is always added twice to valid_types so the message about invalid memtype lists the types twice too. pfullmem is available on all platforms and is always the same as or a superset of pmem. We can look at its fields only to get all valid_types. Also we can check whether to use memory_full_info or not by checking the fields of pfullmem vs. pmem instead of using hard coded mem types. * remove workaround made for Solaris on AIX The problem described in the comment doesn't apply for AIX * update "oneshot" table in documentation * Removed "nice" and "ionice" which are not boosted * Removed "~Process." prefix which was only on a few methods and not others * Added AIX Fixes #1157 * small AIX additions to docs | ||||
* | Fix #1136: check PID in AIX in procfs (#1137) | wiggin15 | 2017-09-27 | 1 | -1/+1 |
| | | | | | | The 'kill' method to check whether processes exist doesn't work on 'wait' processes in AIX. All processes (and only processes) have a "psinfo" file in procfs so we can check whether PIDs exist there. | ||||
* | PEP8-ify code | Giampaolo Rodola | 2017-09-27 | 1 | -1/+0 |
| | |||||
* | AIX support (#1123) | wiggin15 | 2017-09-26 | 1 | -0/+590 |
* AIX support * AIX support * AIX support * AIX support - use get_procfs_path() instead of /proc * AIX support - group sections like in other modules * AIX support * AIX support * AIX support * AIX support - remove unnecessary dict copy |