From 88c90505880a78681d9b6e58e59741f2ba2af0ad Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 21 Oct 2022 21:06:23 +0100 Subject: Log the time for parts of the datastore metric initialisation --- guix-build-coordinator/datastore/sqlite.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/guix-build-coordinator/datastore/sqlite.scm b/guix-build-coordinator/datastore/sqlite.scm index 11947e3..2f3aa21 100644 --- a/guix-build-coordinator/datastore/sqlite.scm +++ b/guix-build-coordinator/datastore/sqlite.scm @@ -295,11 +295,14 @@ PRAGMA optimize;"))))) #:labels '(agent_id reason)))) (letpar& ((build-counts - (datastore-count-builds datastore)) + (with-time-logging "counting builds" + (datastore-count-builds datastore))) (build-result-counts - (datastore-count-build-results datastore)) + (with-time-logging "counting build results" + (datastore-count-build-results datastore))) (setup-failure-counts - (datastore-count-setup-failures datastore))) + (with-time-logging "counting setup failures" + (datastore-count-setup-failures datastore)))) (for-each (match-lambda ((system . count) -- cgit v1.2.3