<s> import sys , os <EOL> import cProfile <EOL> _proc_status = '<STR_LIT>' % os . getpid ( ) <EOL> _scale = { <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> * <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> * <NUM_LIT> <EOL> } <EOL> def _VmB ( VmKey ) : <EOL> global _proc_status , _scale <EOL> try : <EOL> with open ( _proc_status ) as t : <EOL> v = t . read ( ) <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> ] ) * _scale [ v [ <NUM_LIT:2> ] ] <EOL> def memory ( since = <NUM_LIT:0.0> ) : <EOL> '''<STR_LIT>''' <EOL> return _VmB ( '<STR_LIT>' ) - since <EOL> def resident ( since = <NUM_LIT:0.0> ) : <EOL> '''<STR_LIT>''' <EOL> return _VmB ( '<STR_LIT>' ) - since <EOL> def stacksize ( since = <NUM_LIT:0.0> ) : <EOL> '''<STR_LIT>''' <EOL> return _VmB ( '<STR_LIT>' ) - since <EOL> PATH_INSTALL = "<STR_LIT>" <EOL> sys . path . append ( PATH_INSTALL + "<STR_LIT>" ) <EOL> import androguard , analysis <EOL> TEST = "<STR_LIT>" <EOL> l = [ ] <EOL> for i in os . walk ( TEST ) : <EOL> for j in i [ <NUM_LIT:2> ] : <EOL> l . append ( i [ <NUM_LIT:0> ] + j ) <EOL> print len ( l ) , l <EOL> _a = androguard . Androguard ( l ) <EOL> print "<STR_LIT>" , memory ( ) / _scale [ "<STR_LIT>" ] , "<STR_LIT>" , resident ( <EOL> ) / _scale [ "<STR_LIT>" ] , "<STR_LIT>" , stacksize ( ) / _scale [ "<STR_LIT>" ] </s>
