From patchwork Wed Jan 16 16:25:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,V1,06/14] qcow2: Count QCowHashNode creation metrics. Date: Wed, 16 Jan 2013 06:25:00 -0000 From: =?utf-8?q?Beno=C3=AEt_Canet?= X-Patchwork-Id: 212866 Message-Id: <1358353508-5369-7-git-send-email-benoit@irqsave.net> To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com --- block/qcow2-dedup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/qcow2-dedup.c b/block/qcow2-dedup.c index 0f095a9..d22e2a4 100644 --- a/block/qcow2-dedup.c +++ b/block/qcow2-dedup.c @@ -289,6 +289,7 @@ static void qcow2_build_and_insert_hash_node(BlockDriverState *bs, QCOW_FLAG_EMPTY, QCOW_FLAG_EMPTY); g_tree_insert(s->dedup_tree_by_hash, &hash_node->hash, hash_node); + s->dedup_metrics.ram_hash_creations++; } /* @@ -1043,6 +1044,7 @@ static void qcow2_dedup_insert_hash_node(BlockDriverState *bs, g_tree_insert(s->dedup_tree_by_hash, &hash_node->hash, hash_node); g_tree_insert(s->dedup_tree_by_sect, &hash_node->physical_sect, hash_node); + s->dedup_metrics.ram_hash_creations++; } /* This load the QCowHashNode corresponding to a given cluster index into ram