parameters: (self, write_json=False)
docstring: Output the results of systrace to a file.
  
      If output is necessary, then write the results of systrace to either (a)
      a standalone HTML file, or (b) a json file which can be read by the
      trace viewer.
  
      Args:
         write_json: Whether to output to a json file (if false, use HTML file)
docstring_summary: Output the results of systrace to a file.
docstring_tokens: Output the results of systrace to a file .
function: def OutputSystraceResults(self, write_json=False):
      """Output the results of systrace to a file.
  
      If output is necessary, then write the results of systrace to either (a)
      a standalone HTML file, or (b) a json file which can be read by the
      trace viewer.
  
      Args:
         write_json: Whether to output to a json file (if false, use HTML file)
      """
      print 'Tracing complete, writing results'
      if write_json:
        result = output_generator.GenerateJSONOutput(
                    self._tracing_controller.all_results,
                    self._out_filename)
      else:
        result = output_generator.GenerateHTMLOutput(
                    self._tracing_controller.all_results,
                    self._out_filename)
      print '\nWrote trace %s file: file://%s\n' % (('JSON' if write_json
                                                     else 'HTML'), result)
function_tokens: def OutputSystraceResults ( self , write_json = False ) : print 'Tracing complete, writing results' if write_json : result = output_generator . GenerateJSONOutput ( self . _tracing_controller . all_results , self . _out_filename ) else : result = output_generator . GenerateHTMLOutput ( self . _tracing_controller . all_results , self . _out_filename ) print '\nWrote trace %s file: file://%s\n' % ( ( 'JSON' if write_json else 'HTML' ) , result )