tools/perf/benchmarks/memory.py
def CreateCoreTimelineBasedMemoryMeasurementOptions():
  """Creates necessary TBM options for measuring memory usage.

  Separated out so that code can be re-used in other benchmarks.
  """
  # Enable only memory-infra, to get memory dumps, and blink.console, to get
  # the timeline markers used for mapping threads to tabs.
  trace_memory = chrome_trace_category_filter.ChromeTraceCategoryFilter(
      filter_string='-*,blink.console,disabled-by-default-memory-infra')
  tbm_options = timeline_based_measurement.Options(
      overhead_level=trace_memory)
  tbm_options.config.enable_android_graphics_memtrack = True
  tbm_options.SetTimelineBasedMetrics(['memoryMetric'])
  # Setting an empty memory dump config disables periodic dumps.
  tbm_options.config.chrome_trace_config.SetMemoryDumpConfig(
      chrome_trace_config.MemoryDumpConfig())
  return tbm_options
Creates necessary TBM options for measuring memory usage.

  Separated out so that code can be re-used in other benchmarks.
  
Creates necessary TBM options for measuring memory usage.
Separated out so that code can be re-used in other benchmarks.
Creates necessary TBM options for measuring memory usage . Separated out so that code can be re - used in other benchmarks .
def CreateCoreTimelineBasedMemoryMeasurementOptions():
  trace_memory = chrome_trace_category_filter.ChromeTraceCategoryFilter(
      filter_string='-*,blink.console,disabled-by-default-memory-infra')
  tbm_options = timeline_based_measurement.Options(
      overhead_level=trace_memory)
  tbm_options.config.enable_android_graphics_memtrack = True
  tbm_options.SetTimelineBasedMetrics(['memoryMetric'])
  tbm_options.config.chrome_trace_config.SetMemoryDumpConfig(
      chrome_trace_config.MemoryDumpConfig())
  return tbm_options
def CreateCoreTimelineBasedMemoryMeasurementOptions ( ) : trace_memory = chrome_trace_category_filter . ChromeTraceCategoryFilter ( filter_string = '-*,blink.console,disabled-by-default-memory-infra' ) tbm_options = timeline_based_measurement . Options ( overhead_level = trace_memory ) tbm_options . config . enable_android_graphics_memtrack = True tbm_options . SetTimelineBasedMetrics ( [ 'memoryMetric' ] ) tbm_options . config . chrome_trace_config . SetMemoryDumpConfig ( chrome_trace_config . MemoryDumpConfig ( ) ) return tbm_options
Creates necessary TBM options for measuring memory usage.
Creates necessary TBM options for measuring memory usage .
"""Creates necessary TBM options for measuring memory usage.

  Separated out so that code can be re-used in other benchmarks.
  """ # Enable only memory-infra, to get memory dumps, and blink.console, to get # the timeline markers used for mapping threads to tabs. # Setting an empty memory dump config disables periodic dumps.