tools/perf/cli_tools/tbmv3/trace_downloader.py
def GetLocalTraceFileName(html_url):
  """Returns a local filename derived from the html trace url.

  Given https://console.../chrome-telemetry-output/o/foo/bar/trace.html, it
  returns foo_bar_trace as the local filename. The filename does not contain
  extensions. It's up to the caller to add .html or .pb etc."""
  subpath = _GetSubpathInBucket(html_url)
  extension = GetFileExtension(subpath)
  no_extension_subpath = subpath[:-len(extension)]
  return '_'.join(no_extension_subpath.split('/'))
Returns a local filename derived from the html trace url.

  Given https://console.../chrome-telemetry-output/o/foo/bar/trace.html, it
  returns foo_bar_trace as the local filename. The filename does not contain
  extensions. It's up to the caller to add .html or .pb etc.
Returns a local filename derived from the html trace url.
Returns a local filename derived from the html trace url .
def GetLocalTraceFileName(html_url):
  subpath = _GetSubpathInBucket(html_url)
  extension = GetFileExtension(subpath)
  no_extension_subpath = subpath[:-len(extension)]
  return '_'.join(no_extension_subpath.split('/'))
def GetLocalTraceFileName ( html_url ) : subpath = _GetSubpathInBucket ( html_url ) extension = GetFileExtension ( subpath ) no_extension_subpath = subpath [ : - len ( extension ) ] return '_' . join ( no_extension_subpath . split ( '/' ) )
Returns a local filename derived from the html trace url.
Returns a local filename derived from the html trace url .
"""Returns a local filename derived from the html trace url.

  Given https://console.../chrome-telemetry-output/o/foo/bar/trace.html, it
  returns foo_bar_trace as the local filename. The filename does not contain
  extensions. It's up to the caller to add .html or .pb etc."""
html_url