aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-03-31 18:03:43 +0000
committerWerner Koch <[email protected]>2017-03-31 18:08:23 +0000
commit3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8 (patch)
tree7dd291ff076c3647424f85e42de4c8817d471641 /g10/gpg.c
parentgpg: Assert that an opaque parameter is really what we expect. (diff)
downloadgnupg-3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8.tar.gz
gnupg-3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8.zip
gpg: Print more stats for the keydb and the signature cache.
* g10/sig-check.c (sig_check_dump_stats): New. (cache_stats): New struct. (check_key_signature2): Update stats. * g10/gpg.c (g10_exit): Call new function. * g10/keydb.c (kid_not_found_cache_count): Replace by ... (kid_not_found_stats): ... new struct. Change users. (keydb_stats): New struct. Update the counters. (keydb_dump_stats): Print all stats. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/gpg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index c9ae28c61..24636aa7f 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -4998,6 +4998,7 @@ g10_exit( int rc )
if ( (opt.debug & DBG_MEMSTAT_VALUE) )
{
keydb_dump_stats ();
+ sig_check_dump_stats ();
gcry_control (GCRYCTL_DUMP_MEMORY_STATS);
gcry_control (GCRYCTL_DUMP_RANDOM_STATS);
}