compose: Print devino cache hits on commit

Requires: https://github.com/ostreedev/ostree/pull/1772

Closes: #1660
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2018-11-02 16:27:29 -04:00 committed by Atomic Bot
parent 50b255a8a9
commit 0abfcecd38

View File

@ -395,6 +395,10 @@ rpmostree_composeutil_write_composejson (OstreeRepo *repo,
g_variant_builder_add (builder, "{sv}", "ostree-n-content-written", g_variant_builder_add (builder, "{sv}", "ostree-n-content-written",
g_variant_new_uint32 (stats->content_objects_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_print ("Content Bytes Written: %" G_GUINT64_FORMAT "\n", stats->content_bytes_written);
g_variant_builder_add (builder, "{sv}", "ostree-content-bytes-written", g_variant_builder_add (builder, "{sv}", "ostree-content-bytes-written",
g_variant_new_uint64 (stats->content_bytes_written)); g_variant_new_uint64 (stats->content_bytes_written));