def __init__(self, node, metrics_store, phase): threading.Thread.__init__(self) self.stop = False self.node = node self.process = sysstats.setup_process_stats(node.process.pid) self.metrics_store = metrics_store self.phase = phase self.disk_start = None self.process_start = None
def attach_to_node(self, node): self.node = node self.process = sysstats.setup_process_stats(node.process.pid)
def __init__(self, node, metrics_store): self.node = node self.process = sysstats.setup_process_stats(node.process.pid) self.metrics_store = metrics_store # the call is blocking already; there is no need for additional waiting in the sampler thread. self.sample_interval = 0