Message294768
`resource.getrusage(resource.RUSAGE_SELF).ru_maxrss` returns the peak memory usage, in *bytes* on BSD (including Mac OS X) and in *kilobytes* on Linux.
This means that to get a cross-platform value, the user has to check `sys.platform`, which is fairly inconvenient.
It would seem like a good idea to return a platform-independent value (e.g., multiply the Linux return value by 1000 - or is it 1024?!)
Please see also
* https://bugs.python.org/issue20468
* https://stackoverflow.com/a/7669482/850781
Thank you! |
|
Date |
User |
Action |
Args |
2017-05-30 17:01:19 | sam-s | set | recipients:
+ sam-s |
2017-05-30 17:01:19 | sam-s | set | messageid: <1496163679.04.0.847547358971.issue30513@psf.upfronthosting.co.za> |
2017-05-30 17:01:18 | sam-s | link | issue30513 messages |
2017-05-30 17:01:18 | sam-s | create | |
|