parameters: (self, trace)
docstring: Initializes a NetworkActivityLens instance.
  
      Args:
        trace: (LoadingTrace)
docstring_summary: Initializes a NetworkActivityLens instance.
docstring_tokens: Initializes a NetworkActivityLens instance .
function: def __init__(self, trace):
      """Initializes a NetworkActivityLens instance.
  
      Args:
        trace: (LoadingTrace)
      """
      self._trace = trace
      self._start_end_times = []
      self._active_events_list = []
      self._uploaded_bytes_timeline = []
      self._downloaded_bytes_timeline = []
      self._upload_rate_timeline = []
      self._download_rate_timeline = []
      self._total_downloaded_bytes = 0
      requests = trace.request_track.GetEvents()
      self._network_events = list(itertools.chain.from_iterable(
          NetworkEvent.EventsFromRequest(request) for request in requests))
      self._IndexEvents()
      self._CreateTimelines()
function_tokens: def __init__ ( self , trace ) : self . _trace = trace self . _start_end_times = [ ] self . _active_events_list = [ ] self . _uploaded_bytes_timeline = [ ] self . _downloaded_bytes_timeline = [ ] self . _upload_rate_timeline = [ ] self . _download_rate_timeline = [ ] self . _total_downloaded_bytes = 0 requests = trace . request_track . GetEvents ( ) self . _network_events = list ( itertools . chain . from_iterable ( NetworkEvent . EventsFromRequest ( request ) for request in requests ) ) self . _IndexEvents ( ) self . _CreateTimelines ( )