#NEWLINE# def generate_stats( self , request , response ) : #NEWLINE# #INDENT# if ( not hasattr ( self , 'profiler' ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# self . profiler . create_stats ( ) #NEWLINE# self . stats = DjangoDebugToolbarStats ( self . profiler ) #NEWLINE# self . stats . calc_callees ( ) #NEWLINE# root = FunctionCall ( self . stats , self . stats . get_root_func ( ) , depth = 0 ) #NEWLINE# func_list = [ ] #NEWLINE# self . add_node ( func_list , root , dt_settings . CONFIG [ 'PROFILER_MAX_DEPTH' ] , ( root . stats [ 3 ] / 8 ) ) #NEWLINE# self . record_stats ( { #NEWLINE# #INDENT# 'func_list' : func_list , #NEWLINE# #UNINDENT# } )