<s> """<STR_LIT>""" <EOL> import sys <EOL> import psutil <EOL> from psutil . _compat import print_ <EOL> def main ( ) : <EOL> if len ( sys . argv ) != <NUM_LIT:2> : <EOL> sys . exit ( '<STR_LIT>' ) <EOL> p = psutil . Process ( int ( sys . argv [ <NUM_LIT:1> ] ) ) <EOL> print_ ( "<STR_LIT>" % ( p . pid , p . name ) ) <EOL> templ = "<STR_LIT>" <EOL> print_ ( templ % ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> total_rss = <NUM_LIT:0> <EOL> for m in p . get_memory_maps ( grouped = False ) : <EOL> total_rss += m . rss <EOL> print_ ( templ % ( m . addr . split ( '<STR_LIT:->' ) [ <NUM_LIT:0> ] . zfill ( <NUM_LIT:16> ) , <EOL> str ( m . rss / <NUM_LIT> ) + '<STR_LIT>' , <EOL> m . perms , <EOL> m . path ) ) <EOL> print_ ( "<STR_LIT:->" * <NUM_LIT> ) <EOL> print_ ( templ % ( "<STR_LIT>" , str ( total_rss / <NUM_LIT> ) + '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
