Repository: aurora
Updated Branches:
  refs/heads/master 02a685117 -> 18103fe08


Upgrade to psutil with optimized Process.children()

The changelog claims: `Process.children() is 2x faster on UNIX and 2.4x faster
on Linux.`

This is needed for all stats retrieved via `ProcessTreeCollector`. An update
therefore seems worthwhile.

https://github.com/giampaolo/psutil/blob/master/HISTORY.rst

Reviewed at https://reviews.apache.org/r/66186/


Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/18103fe0
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/18103fe0
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/18103fe0

Branch: refs/heads/master
Commit: 18103fe086e1f48bea12ad94bcb264dce2196736
Parents: 02a6851
Author: Stephan Erb <[email protected]>
Authored: Sun Apr 22 21:53:44 2018 +0200
Committer: Stephan Erb <[email protected]>
Committed: Sun Apr 22 21:53:44 2018 +0200

----------------------------------------------------------------------
 3rdparty/python/requirements.txt                                   | 2 +-
 .../apache/thermos/monitoring/test_process_collector_psutil.py     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/18103fe0/3rdparty/python/requirements.txt
----------------------------------------------------------------------
diff --git a/3rdparty/python/requirements.txt b/3rdparty/python/requirements.txt
index c57f5fc..72be82f 100644
--- a/3rdparty/python/requirements.txt
+++ b/3rdparty/python/requirements.txt
@@ -26,7 +26,7 @@ mock==1.0.1
 mox==0.5.3
 pex==1.2.15
 protobuf==3.3.0
-psutil==5.2.0
+psutil==5.4.3
 pystachio==0.8.3
 requests==2.18.4
 requests-kerberos==0.11.0

http://git-wip-us.apache.org/repos/asf/aurora/blob/18103fe0/src/test/python/apache/thermos/monitoring/test_process_collector_psutil.py
----------------------------------------------------------------------
diff --git 
a/src/test/python/apache/thermos/monitoring/test_process_collector_psutil.py 
b/src/test/python/apache/thermos/monitoring/test_process_collector_psutil.py
index 93ff878..1fd2320 100644
--- a/src/test/python/apache/thermos/monitoring/test_process_collector_psutil.py
+++ b/src/test/python/apache/thermos/monitoring/test_process_collector_psutil.py
@@ -19,7 +19,7 @@ from apache.thermos.monitoring.process import ProcessSample
 from apache.thermos.monitoring.process_collector_psutil import 
ProcessTreeCollector
 
 
[email protected]('psutil.process_iter', autospec=True, spec_set=True)
[email protected]('psutil.Process.children', autospec=True, spec_set=True)
 def test_process_tree_collector(mock_process_iter):
   collector = ProcessTreeCollector(None)
   mock_process_iter.side_effect = psutil.Error

Reply via email to