Add API to retrieve statistics from transactions, use it in commit

It's just interesting to see =) This is also kind of prototyping out
some more "structured" output.
This commit is contained in:
Colin Walters committed 2013-07-25 19:23:25 -04:00
1 parent 6fc9483887
commit 5aea9db3f2
5 files changed
+148 -39

No files matched your search

+6
View File
@@ -38,6 +38,12 @@ struct OstreeRepo {
GFile *config_file;
GFile *transaction_lock_path;
GMutex txn_stats_lock;
guint txn_metadata_objects_total;
guint txn_metadata_objects_written;
guint txn_content_objects_total;
guint txn_content_objects_written;
guint64 txn_content_bytes_written;
GMutex cache_lock;
GPtrArray *cached_meta_indexes;