Searched refs:vm_metric (Results 1 – 3 of 3) sorted by relevance
191 vm_metric: &VmMetric, in write_vm_exited_stats_sync()194 let elapsed_time_millis = get_duration(vm_metric.start_timestamp).as_millis() as i64; in write_vm_exited_stats_sync()195 let guest_time_millis = vm_metric.cpu_guest_time.unwrap_or_default(); in write_vm_exited_stats_sync()196 let rss = vm_metric.rss.unwrap_or_default(); in write_vm_exited_stats_sync()
359 pub vm_metric: Mutex<VmMetric>, field408 vm_metric: Mutex::new(Default::default()), in new()420 let mut vm_metric = self.vm_metric.lock().unwrap(); in start() localVariable421 vm_metric.start_timestamp = Some(SystemTime::now()); in start()483 let vm_metric = self.vm_metric.lock().unwrap(); in monitor_vm_exit() localVariable489 &vm_metric, in monitor_vm_exit()544 let mut vm_metric = self.vm_metric.lock().unwrap(); in monitor_vm_status() localVariable548 Ok(guest_time) => vm_metric.cpu_guest_time = Some(guest_time), in monitor_vm_status()555 vm_metric.rss = match &vm_metric.rss { in monitor_vm_status()
1574 let vm_start_timestamp = vm.vm_metric.lock().unwrap().start_timestamp; in notifyPayloadStarted()