case PerformanceCounterType::OPS:
case PerformanceCounterType::WRITE_OPS:
case PerformanceCounterType::READ_OPS:
- break;
case PerformanceCounterType::BYTES:
case PerformanceCounterType::WRITE_BYTES:
case PerformanceCounterType::READ_BYTES:
+ break;
case PerformanceCounterType::LATENCY:
case PerformanceCounterType::WRITE_LATENCY:
case PerformanceCounterType::READ_LATENCY:
case PerformanceCounterType::OPS:
case PerformanceCounterType::WRITE_OPS:
case PerformanceCounterType::READ_OPS:
- break;
case PerformanceCounterType::BYTES:
case PerformanceCounterType::WRITE_BYTES:
case PerformanceCounterType::READ_BYTES:
+ break;
case PerformanceCounterType::LATENCY:
case PerformanceCounterType::WRITE_LATENCY:
case PerformanceCounterType::READ_LATENCY:
return;
case PerformanceCounterType::BYTES:
c->first += inb + outb;
- c->second++;
return;
case PerformanceCounterType::WRITE_BYTES:
if (op.may_write() || op.may_cache()) {
c->first += inb;
- c->second++;
}
return;
case PerformanceCounterType::READ_BYTES:
if (op.may_read()) {
c->first += outb;
- c->second++;
}
return;
case PerformanceCounterType::LATENCY:
'desc' : 'RBD image writes count'},
'read_ops' : {'type' : self.PERFCOUNTER_COUNTER,
'desc' : 'RBD image reads count'},
- 'write_bytes' : {'type' : self.PERFCOUNTER_LONGRUNAVG,
+ 'write_bytes' : {'type' : self.PERFCOUNTER_COUNTER,
'desc' : 'RBD image bytes written'},
- 'read_bytes' : {'type' : self.PERFCOUNTER_LONGRUNAVG,
+ 'read_bytes' : {'type' : self.PERFCOUNTER_COUNTER,
'desc' : 'RBD image bytes read'},
'write_latency' : {'type' : self.PERFCOUNTER_LONGRUNAVG,
'desc' : 'RBD image writes latency (msec)'},