Increment the QPS counter for `db_name` by 1.
(&self, db_name: &str)
| 79 | |
| 80 | /// Increment the QPS counter for `db_name` by 1. |
| 81 | pub fn record_qps(&self, db_name: &str) { |
| 82 | self.get_or_create(db_name) |
| 83 | .qps_total |
| 84 | .fetch_add(1, Ordering::Relaxed); |
| 85 | } |
| 86 | |
| 87 | /// Set the memory-bytes gauge for `db_name`. |
| 88 | pub fn set_memory_bytes(&self, db_name: &str, bytes: u64) { |