parameters: (self)
return_statement: return self._tracing_backend.StopTracing()
docstring: Stops tracing and returns the result as TraceResult object.
docstring_summary: Stops tracing and returns the result as TraceResult object.
docstring_tokens: Stops tracing and returns the result as TraceResult object .
function: def StopTracing(self):
      """ Stops tracing and returns the result as TraceResult object. """
      for (i, debugger_url) in enumerate(self._browser.tabs):
        tab = self.tab_list_backend.Get(i, None)
        if tab:
          success = tab.EvaluateJavaScript(
              "console.time('" + debugger_url + "');" +
              "console.timeEnd('" + debugger_url + "');" +
              "console.time.toString().indexOf('[native code]') != -1;")
          if not success:
            raise Exception('Page stomped on console.time')
          self._tracing_backend.AddTabToMarkerMapping(tab, debugger_url)
      return self._tracing_backend.StopTracing()
function_tokens: def StopTracing ( self ) : for ( i , debugger_url ) in enumerate ( self . _browser . tabs ) : tab = self . tab_list_backend . Get ( i , None ) if tab : success = tab . EvaluateJavaScript ( "console.time('" + debugger_url + "');" + "console.timeEnd('" + debugger_url + "');" + "console.time.toString().indexOf('[native code]') != -1;" ) if not success : raise Exception ( 'Page stomped on console.time' ) self . _tracing_backend . AddTabToMarkerMapping ( tab , debugger_url ) return self . _tracing_backend . StopTracing ( )