tools/perf/cli_tools/tbmv3/trace_downloader.py
def _GetSubpathInBucket(html_url):
  """Returns the path minus the HTML_URL_PREFIX.

  Given https://console.../chrome-telemetry-output/o/foo/bar/trace.html,
  it returns foo/bar/trace.html."""
  if not html_url.startswith(HTML_URL_PREFIX):
    raise Exception('Html trace url must start with %s' % HTML_URL_PREFIX)
  return html_url.replace(HTML_URL_PREFIX, "")
Returns the path minus the HTML_URL_PREFIX.

  Given https://console.../chrome-telemetry-output/o/foo/bar/trace.html,
  it returns foo/bar/trace.html.
Returns the path minus the HTML_URL_PREFIX.
Returns the path minus the HTML_URL_PREFIX .
def _GetSubpathInBucket(html_url):
  if not html_url.startswith(HTML_URL_PREFIX):
    raise Exception('Html trace url must start with %s' % HTML_URL_PREFIX)
  return html_url.replace(HTML_URL_PREFIX, "")
def _GetSubpathInBucket ( html_url ) : if not html_url . startswith ( HTML_URL_PREFIX ) : raise Exception ( 'Html trace url must start with %s' % HTML_URL_PREFIX ) return html_url . replace ( HTML_URL_PREFIX , "" )
Returns the path minus the HTML_URL_PREFIX.
Returns the path minus the HTML_URL_PREFIX .
"""Returns the path minus the HTML_URL_PREFIX.

  Given https://console.../chrome-telemetry-output/o/foo/bar/trace.html,
  it returns foo/bar/trace.html."""
html_url