parameters: (self, pretty=False)
docstring: Formats the chrome trace to a string.
  
      Args:
        pretty: (Optional.)  If True, produce human-readable JSON output.
  
      Returns:
        A JSON-formatted string in Chrome Trace format.
docstring_summary: Formats the chrome trace to a string.
docstring_tokens: Formats the chrome trace to a string .
function: def format_to_string(self, pretty=False):
      """Formats the chrome trace to a string.
  
      Args:
        pretty: (Optional.)  If True, produce human-readable JSON output.
  
      Returns:
        A JSON-formatted string in Chrome Trace format.
      """
      trace = {}
      trace['traceEvents'] = self._metadata + self._events
      if pretty:
        return json.dumps(trace, indent=4, separators=(',', ': '))
      else:
        return json.dumps(trace, separators=(',', ':'))
function_tokens: def format_to_string ( self , pretty = False ) : trace = { } trace [ 'traceEvents' ] = self . _metadata + self . _events if pretty : return json . dumps ( trace , indent = 4 , separators = ( ',' , ': ' ) ) else : return json . dumps ( trace , separators = ( ',' , ':' ) )