Show HN: hazelnut – A pythonic library to parse /proc/meminfo
github.com
github.com
> https://github.com/mrsmn/hazelnut/blob/master/hazelnut/core....
So usage like:
snap_pre = MemInfo()
# Do stuff here
snap_post = MemInfo()
snap_pre.get('Mem')
snap_post.get('Mem')
snap_post.get('Mem')
# All three would likely give different values.
I would suggest caching the read on instantiation or making them top level functions instead of using a class or MemInfoPath()?http://www.srcmap.org/sd_share/7/28338946/Code_Trace_of_Linu...