Skip to content

Commit

Permalink
compose: Print devino cache hits on commit
Browse files Browse the repository at this point in the history
Requires: ostreedev/ostree#1772

Closes: #1660
Approved by: cgwalters
  • Loading branch information
jlebon authored and rh-atomic-bot committed Nov 5, 2018
1 parent 50b255a commit 0abfcec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/rpmostree-composeutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0abfcec

Please sign in to comment.