Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/giampaolo/psutil

Cross-platform lib for process and system monitoring in Python
https://github.com/giampaolo/psutil

update HISTORY and pmap.py docstring

f5cd2fee589b436ad293c69347d75eac9ea90858 authored over 12 years ago
Fix issue 300: add examples/pmap.py script

d672f47ab0fda3d74b9909c72c56c862d2f27ec0 authored over 12 years ago
Issue 216 (OSX): add UNIX sockets support

8f5062b14abd539f11a802e790e4fc7921c0786a authored over 12 years ago
Issue 216 (FreeBSD): add UNIX sockets support

24efa679f8da08e480ac2c5c923c9e60f7e96705 authored over 12 years ago
Issue 216 (Linux): add UNIX sockets support

7a5e9d6760490e537494ecf568bb9a10f7908c0b authored over 12 years ago
OSX: raise warning in case of vm_deallocate() failes instead of printing a msg on stdoud + update HISTORY

948010a9fbea73f06c8b8252a97e1249f57aaa28 authored over 12 years ago
Fix issue 299 (Windows): Py_DECREF every time we use PyList_New(0)

bff623c9773eebd95b14cb17dbda2ce4d0797e8b authored over 12 years ago
Fix issue 299 (OSX): Py_DECREF every time we use PyList_New(0)

4e2f0ef60fe474bb38805f27f98187ed76ac89e8 authored over 12 years ago
Fix issue 299 (Linux): Py_DECREF every time we use PyList_New(0)

980c7f4248d2eab70acc7336ae0f880727013e81 authored over 12 years ago
Fix issue 299 (BSD): Py_DECREF every time we use PyList_New(0)

7452912b2760962fa45826c36be7c12b6b736ccb authored over 12 years ago
(BSD) fix memory leak in get_num_fds()

8bbad2b0111f212a8af868c0373b2a0fc29c9d31 authored over 12 years ago
fix issue 220: implement get_connections() in C on BSD - get rid of the old lsof parser

6b0ed3faad874c55ad54d0d667743f8ffb396f96 authored over 12 years ago
Fix 298: (OSX) memory leak in get_num_fds().

23c0195687dcaf50541e21d5089dcb0a263d68cc authored over 12 years ago
fix compiler warning

303a1ef07f8afa631860bdd7bc31a3f1de179b3d authored over 12 years ago
OSX refactoring

c52323a52086278e3f55549980abba47424a6b8c authored over 12 years ago
fix examples/top.py on OSX

fb93cf41df69bc50cddc94940ae1f2e7c5af5a2f authored over 12 years ago
Fix issue 297: finally fix different AccessDenied problems on OSX by using proc_pidinfo() instead of task_for_pid()

4ebf1126bd158e6ea7c91d986359ae9ecde2f653 authored over 12 years ago
remove hasattr() check for process getcwd() + add get_num_handles() memory leak test

f1ec37362c34b3b0da7bf879df882f0341d4ed84 authored over 12 years ago
fix issue 295: implement process exe on OSX instead of guessing it from the cmdline

8c1afcfe2991c43d6e4750e3ef07c1a8e5b2b0fe authored over 12 years ago
fix issue 222 (OSX): implement process cwd

892c908aa51251a29f123e0b828995dc0c95ff9c authored over 12 years ago
Windows: use PROCESS_QUERY_INFORMATION instead of PROCESS_QUERY_LIMITED_INFORMATION as the former is not availble on mingw32

12cc0eb33df9a2ec7def8b26c472d544fde67e85 authored over 12 years ago
update version (sigh!)

92b5255151b7ee0070c27e5edf14ffbdeeb634f0 authored over 12 years ago
Windows / process exe: GetProcessImageFileName() might return an erroneus exe name; make a check with os.path.exists(exe) before returning.

bdbe4fde2e5c9f8944e2190db7591ef39b5414fe authored over 12 years ago
Fix issue 294: (Windows) fix set_cpu_affinity(), there was an hard coded "1" in the function call which was ignoring the specified CPU mask (crap!).

f5849506d413bd4b3eadbb29b1508279c54c994a authored over 12 years ago
(Windows) refactoring: in case of PID 0 raise AccessDenied within handle_from_pid() instead of elsewhere to avoid code redundancy.

f0dd14e461d599bfe792576a382f194b85fa73d9 authored over 12 years ago
Issue 293: get real process executable path by asking the OS instead of guessing it from cmdline.

With this we get a lot more results than before.

bca2890fde0ff27e82558f3467fc18f3fbfbca04 authored over 12 years ago
Fix issue 292: race condition in process files/threads/connections.

163f29d25f4c5d573fbd436e658829afe95bc1d9 authored over 12 years ago
update HISTORY

d84127401a0ed36726b06d557a8e4d0d6bee729c authored over 12 years ago
get_users(), rename 'options' ntuple field to 'opts' plus update README and HISTORY

b27c646b65bd840a50490cc08dedb7d5e50fac77 authored over 12 years ago
get_users(): on a second tought it's a bad idea to attempt the guess the absolutized path name of the terminal - in the face of ambiguity, let's refuse the temptation to guess.

3dbba275b6d1e68587ca9a57d1213f68663f3421 authored over 12 years ago
osx/bsd fix relative import not working with python 3

0dc9866e6641cfce2975e02a728505c2d3da9773 authored over 12 years ago
enhance uids/gids tests on POSIX

d44d40de88c6f03a658ae61356ab42432df1b3b9 authored over 12 years ago
Fix failing test on Windows with strange 64-bit dll files which cannot be accessed via os.stat()

692e4cda79a093c79f25ebe152cbf07cea40e7bf authored over 12 years ago
Fix some failing tests on Windows.

bc8387e3ff93402b4c32e1b2f0df06263a24f3de authored over 12 years ago
disk_io_counters() / network_io_counters(): raise RuntimeError if we can't get any information about disks or network interfaces.

Also, on Windows, add a note for DeviceIoControl() which fails with ERROR_INSUFFICIENT_BUFFER whe...

e323d10230ec3113d9e4b8545e0558713812f0d2 authored over 12 years ago
(BSD)

- Process.exe: instead of an empty string return None
- write a specific test for get_memory_maps...

b2dc71b3f0632dd83cd1e8811de0a5890f11e5ba authored over 12 years ago
fix some test failures on Linux when running as root

f3340bf75a0e7e7ed5939692c3343e71b7d7be55 authored over 12 years ago
use bare assert clauses where we want a more verbose message in case of test failure

bf49bbdfcc4f54d5138bdcdd541853bd41b1481a authored over 12 years ago
add more tests to fetch all test class

2d61b4e762e9c678ad15c8c93e7e64092aee2cc6 authored over 12 years ago
test refactoring: move test_fetch_all in a separate class for better maintanability as it grew too large

2c20586ffb8f41bc630d376c2c0dafbd46fa9325 authored over 12 years ago
test refactoring: use test_fetch_all() as the only place where we check return values for all processes instead of using process_iter() in the single tests; this way we save a considerable amount of time (tests complete in 6 secs rather than 8) - more refactoring still has to come.

c92244961d0f4f31d319c75336fb7c98847a649d authored over 12 years ago
(windows) fix some py3 related errors

37d26ffdeba60894a8aeba5f2b49beaa35eb22b2 authored over 12 years ago
Fix 'dictionary changed size during iteration' error on python3.3 when using process_iter()

ERROR: test_fetch_all (__main__.TestCase)
-----------------------------------------------------...

9865f9da725c801883af23787b93bd53ae9bfe4d authored over 12 years ago
- fix python 3 support on linux

- close process maps fd (fix ResourceWarning)
- process_iter(): fix 'dictionary changed size ...

368c5d709bf7fdfa250b9386afad332deb124255 authored over 12 years ago
remove test_sys_cpu_percent_compare as it produces too many false positives

5c5d8301b931d6a66e7e442f29de407f9897dccd authored over 12 years ago
fix issue 290: deprecate Process.nice in favor of new get_nice() and set_nice() methods

d89fdb0520dc1d21ea178cf34a932be133e63ee7 authored over 12 years ago
Fix yet another 2 test failures on win.

ba6cd3768f5ace934db2c15a67ef9b9f39543e57 authored over 12 years ago
Fix get_users() heap corruption on Windows due to FreeLibrary used too soon.

121db5062c2c589a756bc6e9462621deb7ffd30e authored over 12 years ago
removing doc directory - I became too lazy to maintain this separately plus there's really no actual point as everything is already maintained and updated online on gcode

4fba874e5c7973c90192def516ef5ef8150caf9a authored over 12 years ago
remove Process.get_environ() due to different levels of unreliability on Windows and Linux

1db65c901706390526799a0948e2b1218421112c authored over 12 years ago
Fix for test_wait() on Windows - when inspecting process cretion time, it seems OpenProcess() does not raise NSP after the process is gone if we previously used p.wait().

Since it is important for p.create_time to raise NSP let's use GetExitCodeProcess() to make sure ...

dd56085994894b4d5927c1c4e31a24159102c53c authored over 12 years ago
Fix some test failures on windows

64da99ca6d5d307295bc011dc8fba08b739f4026 authored over 12 years ago
remove sys.platform.lower() redundancy when checking for what platform we're on; lower() is not necessary

27d96af9e43426c32cf0952b5acc09ce9d0935d1 authored over 12 years ago
fix test_get_children_recursive failure on slow machines: give the sub-sub process some time to start

a4688be1a93dbf9ce15ff045e24b7a60be437db6 authored over 12 years ago
fix failing test on OSX + skip get_memory_map memory leak test on OSX because it's too slow

26c15ec9e4937df40ee7751652d0fce93364ca58 authored over 12 years ago
Issue 260: Implement mapped memory regions used by process for OS X.

* svn:ignore: Updated to ignore *.pyc files.

* HISTORY: Added my name to the Windows support fo...

cf18ae52882dd5faa1ae7ecce1e0c2eda8dc3f8f authored over 12 years ago
fix psutil.test() on OSX

e235363a973ba105b950a8aa2e4e7ffeeacbb2ee authored over 12 years ago
Process.as_dict(): watch for NotImplementedError exceptions when iterating over attrs and avoid to crash unless the user explicitly asked for that particular attr

a77898adf55f30b3b7b299f8fa5df573f7ffec8d authored over 12 years ago
enhanced test case for process_iter()

7fed306dde1ad61fefa1333bd04459540567b2ab authored over 12 years ago
psutil.test() refactoring

ee966a3e0517ceafc74fe588c53aca26e8456fa3 authored over 12 years ago
Fix #287: implement a cache for process_iter()

8b735154be691ad10483acb4d408fe610a23a81c authored over 12 years ago
Fix issue 286 - cache process creation time at instantiation time so that it can be used later in is_running() method to check process identity

0582a3249b388658816bceb9f83d47cac6862e57 authored over 12 years ago
(FreeBSD) move get_process_memory_map() up so that psutil can compile on FreeBSD < 8

602944b20fc1e107ebce0d3361ae5669254c31b3 authored over 12 years ago
(FreeBSD) raise NotImplementedError instead of AttributeError for unsupported functions on FreeBSD < 8

99c468bceb3b99e78da5be148ca1024bb8d5ccbc authored over 12 years ago
Issue 284: get_num_fds() (BSD implementation)

07023732b39bc488136a75b03bc27aed9440e8a1 authored over 12 years ago
Issue 284: get_num_fds() (OSX implementation)

a937a0de47929f96b99543411dc2aa1b43cb5f9a authored over 12 years ago
Issue 284: get_num_fds() (Linux implementation)

530be2547c5350534b5221ce4d46dc83e3ce4dab authored over 12 years ago
(Linux - create time) use ''.rfind instead of ''.find when searching for ')' just in case the process contains ')' as part of its name

a3732786ccf09beacd431df319febabb6426943c authored over 12 years ago
speedup Process.is_running() a bit by avoiding to create a new Process instance. Instead use the underlying self._platform_impl.get_process_create_time() directly.

6beee99172860a46e7487c942830ee2971688f26 authored over 12 years ago
import disk/net io namedtuples at module level to save some time

117a44a78e9f2e4b5705b79b62ce54c56079c0bb authored over 12 years ago
Fix issue 283: speedup Process.is_running() by caching its return value after the process is terminated.

b5969724d3c038ee3bba345d0bbc9a62fd125256 authored over 12 years ago
Fix issue #282: make psutil.STATUS_* constants str-comparable

d816b5c4be1a2f581e802c4be0c29ceb43cf5439 authored over 12 years ago
Fix issue #281: cache the return value of ppid, name, exe, cmdline and create_time properties of Process class (proposal by Tarek Ziadè)

c6b08cd464e5fb5de12c1f8b9f78cbde7eeb00a6 authored over 12 years ago
fix some failing tests including a fix for issue 270

2ced02b2c16fa7ae0c2ef7c833802889257098f6 authored over 12 years ago
Fix 278: add Process.as_dict()

be6c1b26e93882ce3b8a3a3b178b37cdee5d5073 authored over 12 years ago
(sunos) disk_partitions(): if all == True only consider partitions having total size > 0

a8602748b2f77ac10b57be646e6181e6c71e82df authored over 12 years ago
(sunos) get_memory_maps() can return a path name which points to a symlink which cannot be resolved: if that's the case just return that unrelved link path name

654c6be5eb76447555b8ac8853f135dd858f9ae7 authored over 12 years ago
diminish the failures on POSIX test's create time on sunos by rounding the ctime

5500699f8c85f2a0da4625b655121a84d323fe2e authored over 12 years ago
merge

6b0a83378148b06697904d2310252c8fa4fb1c13 authored over 12 years ago
(sunos) this appears to avoid returning weird negative integers for connection status

46e248a78aa596d7955594010d738dfbb39d0af3 authored over 12 years ago
add 'print_' function as 2/3 compatibility layer

3fda52e9e85453ad8bb7b608b5f1dc9d04cbb7bb authored over 12 years ago
fix sunos warning during compiling + fix a test I broke earlier

c598645fae9e433e82cded50ba1c118f71e82fe2 authored over 12 years ago
fix compile warning on sunos plus fix LimitedUserTestCase error when run as 'python setup.py test'

704ef24917a01d7231b2e7643d68e7a9f08c07aa authored over 12 years ago
guess process exe only if cmdline[0] is an absolute path

198f884b44dcc58830a043a09de6f4be40ffbf39 authored over 12 years ago
(sunos) introduce filters for get_connections()

7fc3c451e7f791a968667b0523ff0a4ab0c4dc96 authored over 12 years ago
(sunos) make cpu_times() return float in order to be consistent with other platforms' return type

a9bc81a20ecfcc5b2f92754e12298e42aae0b37f authored over 12 years ago
(sunos) add commented-out C code for process IO counters; we're not going to add it this functionality as it seems it's not reliable

7d4f5d9bbb83e433c614017afa2f5a44aac416c7 authored over 12 years ago
(sunos) turn connection states into constants (from strings)

08c21747a73ace987202c96a9a9a5b265a2b1a9b authored over 12 years ago
(sunos) use PyErr_SetFromErrnoWithFilename() when failing to read a file in /proc plus fix some other tests

89a81bf399995130968b6d22e75318cefc129105 authored over 12 years ago
(sunos) add special case for PIDs 2 and 3: getpriority() and setpriority() erroneously return ESRCH even if the process is still alive.

d85f2317099586acda52eefdde7cbddd66002b87 authored over 12 years ago
(sunos) process cwd: /proc/PID/path/cwd may not be resolved by readlink() even if it exists - return None if that's the case

4fc45770a639b3e777502348f44fea0b2faabb26 authored over 12 years ago
(sunos) fix some failing tests

93ca48db4d073bbdc3649197e00ce6b1e397daa6 authored over 12 years ago
(sunos) fix some example scripts not working on solaris

d833ab803f1a345c215caddb927875e10b02e419 authored over 12 years ago
(sunos) fix some failing tests

8e87f6e8288aa97d7c49373ee68a1b1043a0de6a authored over 12 years ago
(sunos) merge from default branch

5ad171290c6e18e5ed78931501a11e85b7b9b5f3 authored over 12 years ago
(sunos) re-establish Python 3 compatibility

162c9ae223cf7dd336e6f66f3c00558c4e39080c authored over 12 years ago
(sunos) implement process connections.

This is still kind of beta as it:
- parses 'pfiles' cmd output in order to list UNIX sockets
- le...

eab90f96de93b7aec597d80658d3eb9b2b18f6d4 authored over 12 years ago
fix issue #275: raise NotImplementeError on old Linux platforms where /proc/PID/io is not available

0d8c6ee142edffd715eeafba4abe785d2c9ef139 authored over 12 years ago
remove isinstance(pid, int) check in Process constructor; the right exception will already be raised by underlying pid_exists() function if it's the case

a270d010b15fd5872f9cacc89a84047e1daa087b authored over 12 years ago
ntuple_* variables renaming

11727aae9e024d62f2d65ab006e31883d668efdf authored over 12 years ago