summaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorChenLiang <chenliang88@huawei.com>2014-04-04 17:57:56 +0800
committerJuan Quintela <quintela@redhat.com>2014-05-05 22:15:03 +0200
commit8bc3923343e91902ca541112b3bdb5448f8d288e (patch)
tree2f6a005134c54ba599e21675ea93e1f2d4fcc0ae /hmp.c
parent58570ed894631904bcdbcd1e8b34479cebe2aae9 (diff)
downloadqemu-8bc3923343e91902ca541112b3bdb5448f8d288e.zip
migration: expose xbzrle cache miss rate
expose xbzrle cache miss rate Signed-off-by: ChenLiang <chenliang88@huawei.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index 69a70e473b..903e0a1dd7 100644
--- a/hmp.c
+++ b/hmp.c
@@ -214,6 +214,8 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
info->xbzrle_cache->pages);
monitor_printf(mon, "xbzrle cache miss: %" PRIu64 "\n",
info->xbzrle_cache->cache_miss);
+ monitor_printf(mon, "xbzrle cache miss rate: %0.2f\n",
+ info->xbzrle_cache->cache_miss_rate);
monitor_printf(mon, "xbzrle overflow : %" PRIu64 "\n",
info->xbzrle_cache->overflow);
}