We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f30fc6b commit a1bee2cCopy full SHA for a1bee2c
1 file changed
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
@@ -1118,9 +1118,12 @@ public Answer createSnapshot(CreateObjectCommand cmd) {
1118
String vmUuid = vm.getUUIDString();
1119
Object[] args = new Object[] {snapshotName, vmUuid};
1120
String snapshot = SnapshotXML.format(args);
1121
- s_logger.debug(snapshot);
1122
+ long start = System.currentTimeMillis();
1123
vm.snapshotCreateXML(snapshot);
1124
+ long total = (System.currentTimeMillis() - start)/1000;
1125
+ s_logger.debug("snapshot takes " + total + " seconds to finish");
1126
+
1127
/*
1128
* libvirt on RHEL6 doesn't handle resume event emitted from
1129
* qemu
0 commit comments