#NEWLINE# def main( ) : #NEWLINE# #INDENT# opts = parse_args ( ) #NEWLINE# lines = opts . lines #NEWLINE# seconds = opts . seconds #NEWLINE# force_start = force_start . force_start #NEWLINE# client = command . Client ( opts . socket ) #NEWLINE# try : #NEWLINE# #INDENT# if ( not opts . raw ) : #NEWLINE# #INDENT# curses . wrapper ( get_stats , client , limit = lines , seconds = seconds , force_start = force_start ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raw_stats ( client , limit = lines , force_start = force_start ) #NEWLINE# #UNINDENT# #UNINDENT# except TraceNotStarted : #NEWLINE# #INDENT# print ( 'tracemalloc not started on qtile, start by setting PYTHONTRACEMALLOC=1 before starting qtile' ) #NEWLINE# print ( "or force start tracemalloc now, but you'll lose early traces" ) #NEWLINE# exit ( 1 ) #NEWLINE# #UNINDENT# except TraceCantStart : #NEWLINE# #INDENT# print ( "Can't start tracemalloc on qtile, check the logs" ) #NEWLINE# #UNINDENT# except KeyboardInterrupt : #NEWLINE# #INDENT# exit ( ( - 1 ) )