Closed GoogleCodeExporter closed 8 years ago
Couple questions that come to mind:
1) Are we interested in providing aliases for platform specific memory names?
e.g. cached/buffer on Linux, wired/inactive on OS X etc.
2) Are we going to expose directly things like wired/active/inactive amounts
for OS X or only the calculated results showing "available" and "free" memory
stats
I see the value in cross-platform design but also imagine if you're developing
psutil apps specific to a certain platform you may wish to look at
platform-specific memory info as well.
Original comment by jlo...@gmail.com
on 24 Jul 2012 at 5:26
Nope, no aliases. We'll just have a namedtuple with different fields depending
on the OS with the first 5 fields (total, available, percent, used, free)
always available on all platforms. Basically it's the same thing we did with
psutil.cpu_times().
On OSX we'll also have wired/active/inactive amounts.
The 'cross-platform design' will be guaranteed by the first 5 values, with
'available' field being the most important as it'll represent the effective
amount of available memory.
Original comment by g.rodola
on 24 Jul 2012 at 5:50
Issue 256 has been merged into this issue.
Original comment by g.rodola
on 24 Jul 2012 at 6:31
Ah ok I see.. I missed that part about these being "always available" and then
adding fields for the platform-specific ones. That makes sense and it's best of
both worlds.
Original comment by jlo...@gmail.com
on 24 Jul 2012 at 7:05
Committed in r1498 for all platforms.
Original comment by g.rodola
on 24 Jul 2012 at 9:42
Fixed in version 0.6.0, released just now.
Original comment by g.rodola
on 13 Aug 2012 at 4:25
Issue 256 has been merged into this issue.
Original comment by g.rodola
on 1 Mar 2013 at 10:32
Issue 256 has been merged into this issue.
Original comment by g.rodola
on 2 Mar 2013 at 12:07
Updated csets after the SVN -> Mercurial migration:
r1498 == revision ???
Original comment by g.rodola
on 2 Mar 2013 at 12:11
Original issue reported on code.google.com by
g.rodola
on 24 Jul 2012 at 5:14