| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
ever set SE DEBUG at all?) - if SE DEBUG can't be set we now raise an exception on import; that's bad - I'll change it later, and I will probably replace it with a warning
|
| | |
|
| | |
|
| |\ |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
UNICODE version instead
|
| | | |
|
| | | |
|
| |/
|
|
| |
OSError on failed malloc().
|
| |
|
| |
Windows / speeup: dynamically load libraries on startup and never again.
|
| | |
|
| |
|
|
|
| |
(#1417)
Windows / refactoring: add utility functions for LoadLibraryA and GetProcAddress. Centralize logic in one place.
|
| |\ |
|
| | | |
|
| |/
|
|
| |
implementations can be called separately (and tested separately)
|
| | |
|
| | |
|
| |
|
|
|
| |
NtQueryInformationProcess (see #1384) (#1398)
#1384, #1398: on windows 8.1, get cmdline() using NtQueryInformationProcess in case the original method fails with ACCESS_DENIED
|
| | |
|
| |
|
|
| |
error code resulting in raising a wrong exception
|
| |
|
| |
#1376 / Windows / OpenProcess - use PROCESS_QUERY_LIMITED_INFORMATION wherever possible. This results in less AccessDenied exceptions being thrown for system processes.
|
| | |
|
| |
|
|
| |
Add CPU frequency support for FreeBSD (patch by @amanusk)
|
| |
|
| |
FreeBSD: add temperature sensors
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* setup.py: add py 3.7
* Revert OSX sensors code due to copyright constraints
It turns out code contributed in PR #1284 was using parts of a source
code released by Apple [1] which uses GPL license which is incompatible with
psutil's license (BSD).
[1] https://gist.github.com/edvakf/4049362
|
| | |
|
| |
|
| |
rename OSX to macOS
|
| | |
|
| |
|
| |
OSX: add temperatures() and fans()
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* use GetLogicalProcessorInformation() to get logical cpu_count()
* return None if cpu_count() is undetermined + add mock test
* style
* factor out logical CPU num fun
* remove unused code
* psutil_get_num_cpus(): provide an option to fail on err
* add comments
* reuse get_num_cpus() function
* error out if get_num_cpus() fail
* use GetLogicalProcessorInformationEx to get phys CPU num
* on win vista/xp just return None for phys CPU count
* rename vars
* fix C compiler warnings + remove mingw workarounds
* return None if phys cpu count cant' be determined; update HISTORY
* update HISTORY
* update doc
* add WMI tests
* refactor tests
* print debug msg for cpu phys returning None on win < 7
* try to fix win test
* appveyor debug
* fix typo
* adjust appveyor 64 bit versions
* debug msg
* fix for loop
* re-enable python versions
* (maybe) finally fix GetLogicalProcessorInformationEx return len
|
| | |
|
| | |
|
| |
|
|
|
|
| |
* change NoSuchProcess and AccessDenied C exceptions signatures
* fix arg call on win
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* implement PSUTIL_DEBUG from C module
* update doc
* add psutil_debug() utility function
* update doc
* enable PSUTIL_DEBUG for tests
* update appveyor.yml
* change psutil_debug() signature so that it can accept variable num of args
* provide DEBUG info in psutil_raise_for_pid()
* properly print debug message
* do not print too much
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
* small changes
* AIX: implement num_ctx_switches
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* small refactoring
* #1044: define a separate ctx manager which handles zombie processes
* add create_zombie_proc utility function
* disable test on windows
* #1044: cmdline() was incorrectly raising AD instead of ZombieProcess
* #1044: environ() was incorrectly raising AD instead of ZombieProcess
* #1044: memory_maps() was incorrectly raising AD instead of ZombieProcess
* #1044: threads() was incorrectly raising AD instead of ZombieProcess
* enhance test
* fix threads()
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* windows / C: add assert to make sure pid_is_running() is correct
* set an error str
* check if pid is actually gone in psutil_handle_from_pid_waccess
* small refactoring
* GetExitCodeProces() return code was not checked
* define a reusable check_phandle() C function which checks whether the process handle is actually running
* refactoring
* re-enable windows test which now passes
* check pid_is_running -1 return value in proc_connections(); also refactor some C code
* fix memleak
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rename C module
* rename C file
* fix compilation error
* small refactoring
* small refactoring
* raise AccessDenied if info.pr_envp is empty, see https://github.com/giampaolo/psutil/pull/1091#issuecomment-304530771
* fix envs with no equal sign
* style
* update doc
* style
|
| |
|
|
|
|
| |
* Add common functions to extract information from SunOS process address space
* SunOS feature: Add .environ()
|
| | |
|
| | |
|