summaryrefslogtreecommitdiff
path: root/debuginfod/ChangeLog
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2020-11-23 19:58:10 -0500
committerFrank Ch. Eigler <fche@redhat.com>2020-11-25 19:42:10 -0500
commitba6499984c2202e339e82420090cc9fc443ed8f2 (patch)
tree519849283041af43648538b0bfa56b946be820d9 /debuginfod/ChangeLog
parent64dc5374b7e12a1ee95af6e1e91249dc2410878b (diff)
downloadelfutils-ba6499984c2202e339e82420090cc9fc443ed8f2.tar.gz
debuginfod: sqlite3 metrics
Add metrics for tracking sqlite3 error counts and query performance. The former looks like a new sibling of the "error_count" family, and is tested by dd-corrupting a live database file then triggering some debuginfod activity. error_count{sqlite3="file is not a database"} 1 The latter looks like _count/_sum pairs for each type of sqlite prepared-statement used in the code, and is grep smoke-tested. They should assist a sysadmin in tuning db storage. This example shows a 6.4 ms/operation cost: sqlite3_milliseconds_count{step-done="rpm-file-intern"} 318 sqlite3_milliseconds_sum{reset="rpm-file-intern"} 2033 Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
Diffstat (limited to 'debuginfod/ChangeLog')
-rw-r--r--debuginfod/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog
index cd009fd2..576b6673 100644
--- a/debuginfod/ChangeLog
+++ b/debuginfod/ChangeLog
@@ -3,6 +3,12 @@
* debuginfod-client.c (debuginfod_query_server): Initialize
struct handle_data errbuf to the empty string.
+2020-11-23 Frank Ch. Eigler <fche@redhat.com>
+
+ * debuginfod.cxx (tmp_ms_metric): New class for RAII timing metrics.
+ (sqlite_ps::reset, step*): Call it to track sqlite3 performance.
+ (sqlite_exception ctor): Increment sqlite3 error_count.
+
2020-11-11 Mark Wielaard <mark@klomp.org>
* debuginfod-client.c (debuginfod_set_verbose_fd): New function.