From 0abfcecd3854ce218857bf1071d365dbd351cd4d Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Fri, 2 Nov 2018 16:27:29 -0400 Subject: [PATCH] compose: Print devino cache hits on commit Requires: https://github.com/ostreedev/ostree/pull/1772 Closes: #1660 Approved by: cgwalters --- src/app/rpmostree-composeutil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/rpmostree-composeutil.c b/src/app/rpmostree-composeutil.c index 544a4790..5c478691 100644 --- a/src/app/rpmostree-composeutil.c +++ b/src/app/rpmostree-composeutil.c @@ -395,6 +395,10 @@ rpmostree_composeutil_write_composejson (OstreeRepo *repo, g_variant_builder_add (builder, "{sv}", "ostree-n-content-written", g_variant_new_uint32 (stats->content_objects_written)); + g_print ("Content Cache Hits: %u\n", stats->devino_cache_hits); + g_variant_builder_add (builder, "{sv}", "ostree-n-cache-hits", + g_variant_new_uint32 (stats->devino_cache_hits)); + g_print ("Content Bytes Written: %" G_GUINT64_FORMAT "\n", stats->content_bytes_written); g_variant_builder_add (builder, "{sv}", "ostree-content-bytes-written", g_variant_new_uint64 (stats->content_bytes_written));