parameters: (statement, filename=None, sort=-1)
return_statement: return result
docstring: Run statement under profiler optionally saving results in filename
  
      This function takes a single argument that can be passed to the
      "exec" statement, and an optional file name.  In all cases this
      routine attempts to "exec" its first argument and gather profiling
      statistics from the execution. If no file name is present, then this
      function automatically prints a simple profiling report, sorted by the
      standard name string (file/line/function-name) that is presented in
      each line.
docstring_summary: Run statement under profiler optionally saving results in filename
docstring_tokens: Run statement under profiler optionally saving results in filename
function: def run(statement, filename=None, sort=-1):
      """Run statement under profiler optionally saving results in filename
  
      This function takes a single argument that can be passed to the
      "exec" statement, and an optional file name.  In all cases this
      routine attempts to "exec" its first argument and gather profiling
      statistics from the execution. If no file name is present, then this
      function automatically prints a simple profiling report, sorted by the
      standard name string (file/line/function-name) that is presented in
      each line.
      """
      prof = Profile()
      result = None
      try:
          try:
              prof = prof.run(statement)
          except SystemExit:
              pass
      finally:
          if filename is not None:
              prof.dump_stats(filename)
          else:
              result = prof.print_stats(sort)
      return result
function_tokens: def run ( statement , filename = None , sort = - 1 ) : prof = Profile ( ) result = None try : try : prof = prof . run ( statement ) except SystemExit : pass finally : if filename is not None : prof . dump_stats ( filename ) else : result = prof . print_stats ( sort ) return result