diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2020-11-25 19:41:03 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2020-11-25 19:42:10 -0500 |
commit | ea5788a5bae5ac88148e4cddbe5fe7ea7628eadc (patch) | |
tree | 801043999d1f307510e97a650bca2ba204d115fc /debuginfod/ChangeLog | |
parent | ba6499984c2202e339e82420090cc9fc443ed8f2 (diff) | |
download | elfutils-ea5788a5bae5ac88148e4cddbe5fe7ea7628eadc.tar.gz |
debuginfod: use clock_gettime(CLOCK_MONOTONIC) for intervals
On Mark's request, use a monotonic clock for metrics/reports related
to time interval measurement. gettimeofday can jump a bit, which
could distort metrics. Tests unaffected.
Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
Diffstat (limited to 'debuginfod/ChangeLog')
-rw-r--r-- | debuginfod/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index 576b6673..d3868383 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-25 Frank Ch. Eigler <fche@redhat.com> + + * debuginfod.cxx (tmp_ms_metric): Switch from gettimeofday to + clock_gettime(CLOCK_MONOTONIC) for time-interval measurements. + (handler_cb, scan_source_paths, groom): Ditto. + 2020-11-23 Frank Ch. Eigler <fche@redhat.com> * debuginfod.cxx (tmp_ms_metric): New class for RAII timing metrics. |