MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / counters

Method counters

vmm/src/device_manager.rs:5133–5144  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

5131 }
5132
5133 pub fn counters(&self) -> HashMap<String, HashMap<&'static str, Wrapping<u64>>> {
5134 let mut counters = HashMap::new();
5135
5136 for handle in &self.virtio_devices {
5137 let virtio_device = handle.virtio_device.lock().unwrap();
5138 if let Some(device_counters) = virtio_device.counters() {
5139 counters.insert(handle.id().to_owned(), device_counters.clone());
5140 }
5141 }
5142
5143 counters
5144 }
5145
5146 pub fn resize_balloon(&mut self, size: u64) -> DeviceManagerResult<()> {
5147 if let Some(balloon) = &self.balloon {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
insertMethod · 0.45
idMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected