def __init__(self, worker):
    """Initializes the stat collector.

    Args:
      worker: A `GRRClientWorker` instance that spawned this stat collector.
    """
    super(ClientStatsCollector, self).__init__()
    self.daemon = True

    self._worker = worker

    self._process = psutil.Process()
    self._cpu_samples = []
    self._io_samples = []

    self._last_send_time = rdfvalue.RDFDatetime.FromSecondsSinceEpoch(0)
    self._should_send = False
def __init__ ( self , worker ) : super ( ClientStatsCollector , self ) . __init__ ( ) self . daemon = True self . _worker = worker self . _process = psutil . Process ( ) self . _cpu_samples = [ ] self . _io_samples = [ ] self . _last_send_time = rdfvalue . RDFDatetime . FromSecondsSinceEpoch ( 0 ) self . _should_send = False
Initializes the stat collector.

    Args:
      worker: A `GRRClientWorker` instance that spawned this stat collector.