From 3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 31 Mar 2017 20:03:43 +0200 Subject: 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 --- g10/gpg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/gpg.c') 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); } -- cgit v1.2.3