parameters: (self, renderer_process, browser_process, timeline_ranges)
docstring: Utility class for extracting rendering statistics from the timeline (or
      other loggin facilities), and providing them in a common format to classes
      that compute benchmark metrics from this data.
  
      Stats are lists of lists of numbers. The outer list stores one list per
      timeline range.
  
      All *_time values are measured in milliseconds.
docstring_summary: Utility class for extracting rendering statistics from the timeline (or
      other loggin facilities), and providing them in a common format to classes
      that compute benchmark metrics from this data.
docstring_tokens: Utility class for extracting rendering statistics from the timeline ( or other loggin facilities ) and providing them in a common format to classes that compute benchmark metrics from this data .
function: def __init__(self, renderer_process, browser_process, timeline_ranges):
      """
      Utility class for extracting rendering statistics from the timeline (or
      other loggin facilities), and providing them in a common format to classes
      that compute benchmark metrics from this data.
  
      Stats are lists of lists of numbers. The outer list stores one list per
      timeline range.
  
      All *_time values are measured in milliseconds.
      """
      assert(len(timeline_ranges) > 0)
      self.renderer_process = renderer_process
  
      self.frame_timestamps = []
      self.frame_times = []
      self.paint_times = []
      self.painted_pixel_counts = []
      self.record_times = []
      self.recorded_pixel_counts = []
      self.rasterize_times = []
      self.rasterized_pixel_counts = []
      # End-to-end latency for MouseWheel scroll - from when mouse wheel event is
      # generated to when the scrolled page is buffer swapped.
      self.mouse_wheel_scroll_latency = []
      # End-to-end latency for GestureScrollUpdate scroll - from when the touch
      # event is generated to the scrolled page is buffer swapped.
      self.touch_scroll_latency = []
      # End-to-end latency for JS touch handler scrolling - from when the touch
      # event is generated to the scrolled page is buffer swapped.
      self.js_touch_scroll_latency = []
  
      for timeline_range in timeline_ranges:
        self.frame_timestamps.append([])
        self.frame_times.append([])
        self.paint_times.append([])
        self.painted_pixel_counts.append([])
        self.record_times.append([])
        self.recorded_pixel_counts.append([])
        self.rasterize_times.append([])
        self.rasterized_pixel_counts.append([])
        self.mouse_wheel_scroll_latency.append([])
        self.touch_scroll_latency.append([])
        self.js_touch_scroll_latency.append([])
  
        if timeline_range.is_empty:
          continue
        self.initMainThreadStatsFromTimeline(timeline_range)
        self.initImplThreadStatsFromTimeline(timeline_range)
        self.initScrollLatencyStatsFromTimeline(browser_process, timeline_range)
function_tokens: def __init__ ( self , renderer_process , browser_process , timeline_ranges ) : assert ( len ( timeline_ranges ) > 0 ) self . renderer_process = renderer_process self . frame_timestamps = [ ] self . frame_times = [ ] self . paint_times = [ ] self . painted_pixel_counts = [ ] self . record_times = [ ] self . recorded_pixel_counts = [ ] self . rasterize_times = [ ] self . rasterized_pixel_counts = [ ] # End-to-end latency for MouseWheel scroll - from when mouse wheel event is # generated to when the scrolled page is buffer swapped. self . mouse_wheel_scroll_latency = [ ] # End-to-end latency for GestureScrollUpdate scroll - from when the touch # event is generated to the scrolled page is buffer swapped. self . touch_scroll_latency = [ ] # End-to-end latency for JS touch handler scrolling - from when the touch # event is generated to the scrolled page is buffer swapped. self . js_touch_scroll_latency = [ ] for timeline_range in timeline_ranges : self . frame_timestamps . append ( [ ] ) self . frame_times . append ( [ ] ) self . paint_times . append ( [ ] ) self . painted_pixel_counts . append ( [ ] ) self . record_times . append ( [ ] ) self . recorded_pixel_counts . append ( [ ] ) self . rasterize_times . append ( [ ] ) self . rasterized_pixel_counts . append ( [ ] ) self . mouse_wheel_scroll_latency . append ( [ ] ) self . touch_scroll_latency . append ( [ ] ) self . js_touch_scroll_latency . append ( [ ] ) if timeline_range . is_empty : continue self . initMainThreadStatsFromTimeline ( timeline_range ) self . initImplThreadStatsFromTimeline ( timeline_range ) self . initScrollLatencyStatsFromTimeline ( browser_process , timeline_range )