mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
52ba5e67ca
commit
3a10de3bfd
4 changed files with 109 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue