mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
measure how long it takes to create a snaphsot
This commit is contained in:
parent
f30fc6b673
commit
a1bee2cb61
@ -1118,9 +1118,12 @@ public class KVMStorageProcessor implements StorageProcessor {
|
|||||||
String vmUuid = vm.getUUIDString();
|
String vmUuid = vm.getUUIDString();
|
||||||
Object[] args = new Object[] {snapshotName, vmUuid};
|
Object[] args = new Object[] {snapshotName, vmUuid};
|
||||||
String snapshot = SnapshotXML.format(args);
|
String snapshot = SnapshotXML.format(args);
|
||||||
s_logger.debug(snapshot);
|
|
||||||
|
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
vm.snapshotCreateXML(snapshot);
|
vm.snapshotCreateXML(snapshot);
|
||||||
|
long total = (System.currentTimeMillis() - start)/1000;
|
||||||
|
s_logger.debug("snapshot takes " + total + " seconds to finish");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* libvirt on RHEL6 doesn't handle resume event emitted from
|
* libvirt on RHEL6 doesn't handle resume event emitted from
|
||||||
* qemu
|
* qemu
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user