예제 #1
0
    def __init__(self, fields=None):
        self.disk_name = ValuesList()
        self.read_ios = ValuesList()
        self.write_ios = ValuesList()
        self.read_merges = ValuesList()
        self.write_merges = ValuesList()
        self.read_ticks = ValuesList()
        self.write_ticks = ValuesList()
        self.time_in_queue = ValuesList()
        self.utilization = ValuesList(unit="%")

        if (fields is not None):
            self.add(fields)
예제 #2
0
    def __init__(self, name):
        self.name = name
        self.read_status = RWStatus()
        self.write_status = RWStatus()

        CpuUsage = namedtuple("CpuUsage", "user system context_switches major_faults minor_faults")
        self.cpu_usage = CpuUsage(
            ValuesList(unit="%"),
            ValuesList(unit="%"),
            ValuesList(),
            ValuesList(),
            ValuesList(),
        )

        self.io_depths = ValuesList()
        self.io_lat_us = ValuesList()
        self.io_lat_ms = ValuesList()
        self.disk_utilization = DiskUtilization()
예제 #3
0
	def __init__(self, fields = None):
		self.total_io = ValuesList(unit="B")
		self.bandwidth = ValuesList(unit="B")
		self.iops = ValuesList()
		self.runtime = ValuesList(unit="ms")
		Latency = namedtuple("Latency", "min max mean deviation")
		LatencyBW = namedtuple("Latency", "min max mean percentage deviation")
		self.submission_latency = Latency(
				ValuesList(unit="ms"),
				ValuesList(unit="ms"),
				ValuesList(unit="ms"),
				ValuesList(unit="ms")
				)
		self.completion_latency = Latency(
				ValuesList(unit="ms"),
				ValuesList(unit="ms"),
				ValuesList(unit="ms"),
				ValuesList(unit="ms")
				)
		self.completion_latency_percentiles = ValuesList(unit="%")
		self.total_latency = Latency(
				ValuesList(unit="ms"),
				ValuesList(unit="ms"),
				ValuesList(unit="ms"),
				ValuesList(unit="ms")
				)
		self.bw = LatencyBW(
				ValuesList(unit="ms"),
				ValuesList(unit="ms"),
				ValuesList(unit="ms"),
				ValuesList(unit="%"),
				ValuesList(unit="ms"),
				)

		if (fields is not None):
			self.add(fields)