<s> class MemoryStats ( object ) : <EOL> _proc_status = '<STR_LIT>' <EOL> _scale = { '<STR_LIT>' : <NUM_LIT> , '<STR_LIT>' : <NUM_LIT> * <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> , '<STR_LIT>' : <NUM_LIT> * <NUM_LIT> } <EOL> def _VmB ( self , VmKey ) : <EOL> '''<STR_LIT>''' <EOL> try : <EOL> t = open ( self . _proc_status ) <EOL> v = t . read ( ) <EOL> t . close ( ) <EOL> except : <EOL> return <NUM_LIT:0.0> <EOL> i = v . index ( VmKey ) <EOL> v = v [ i : ] . split ( None , <NUM_LIT:3> ) <EOL> if len ( v ) < <NUM_LIT:3> : <EOL> return <NUM_LIT:0.0> <EOL> return float ( v [ <NUM_LIT:1> ] ) * self . _scale [ v [ <NUM_LIT:2> ] ] <EOL> def memory ( self , since = <NUM_LIT:0.0> ) : <EOL> '''<STR_LIT>''' <EOL> return self . _VmB ( '<STR_LIT>' ) - since <EOL> def resident ( self , since = <NUM_LIT:0.0> ) : <EOL> '''<STR_LIT>''' <EOL> return self . _VmB ( '<STR_LIT>' ) - since <EOL> def stacksize ( self , since = <NUM_LIT:0.0> ) : <EOL> '''<STR_LIT>''' <EOL> return self . _VmB ( '<STR_LIT>' ) - since </s>
