Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: utils
-
Labels:
-
Story Points:3
-
Team:Architecture
Description
The @timeMethod decorator is currently implemented in terms of Python's resource package, whose behavior depends on the operating system it is run on (for example, the resident set size may be given in bytes, kibibytes, or pages). This is particularly confusing in a distributed system, where the platform on which the decorator runs may not be obvious (see discussion on verify#47).
Find a way to make this decorator more platform-agnostic; Tim Jenness has suggested using psutil instead of resource.
Kian-Tat Lim can you please take a look at this. I've moved all the getrusage into the usage file and added a version number. I didn't add units because I force the units to be bytes.