1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos OPENSSL_LH_stats, OPENSSL_LH_node_stats, OPENSSL_LH_node_usage_stats, 6 1.1 christos OPENSSL_LH_stats_bio, 7 1.1 christos OPENSSL_LH_node_stats_bio, OPENSSL_LH_node_usage_stats_bio - LHASH statistics 8 1.1 christos 9 1.1 christos =head1 SYNOPSIS 10 1.1 christos 11 1.1 christos #include <openssl/lhash.h> 12 1.1 christos 13 1.1 christos void OPENSSL_LH_stats(LHASH *table, FILE *out); 14 1.1 christos void OPENSSL_LH_node_stats(LHASH *table, FILE *out); 15 1.1 christos void OPENSSL_LH_node_usage_stats(LHASH *table, FILE *out); 16 1.1 christos 17 1.1 christos void OPENSSL_LH_stats_bio(LHASH *table, BIO *out); 18 1.1 christos void OPENSSL_LH_node_stats_bio(LHASH *table, BIO *out); 19 1.1 christos void OPENSSL_LH_node_usage_stats_bio(LHASH *table, BIO *out); 20 1.1 christos 21 1.1 christos =head1 DESCRIPTION 22 1.1 christos 23 1.1 christos The B<LHASH> structure records statistics about most aspects of 24 1.1 christos accessing the hash table. 25 1.1 christos 26 1.1.1.2 christos OPENSSL_LH_stats() prints out statistics on the size of the hash table and how 27 1.1.1.2 christos many entries are in it. For historical reasons, this function also outputs a 28 1.1.1.2 christos number of additional statistics, but the tracking of these statistics is no 29 1.1.1.2 christos longer supported and these statistics are always reported as zero. 30 1.1 christos 31 1.1 christos OPENSSL_LH_node_stats() prints the number of entries for each 'bucket' in the 32 1.1 christos hash table. 33 1.1 christos 34 1.1 christos OPENSSL_LH_node_usage_stats() prints out a short summary of the state of the 35 1.1 christos hash table. It prints the 'load' and the 'actual load'. The load is 36 1.1 christos the average number of data items per 'bucket' in the hash table. The 37 1.1 christos 'actual load' is the average number of items per 'bucket', but only 38 1.1 christos for buckets which contain entries. So the 'actual load' is the 39 1.1 christos average number of searches that will need to find an item in the hash 40 1.1 christos table, while the 'load' is the average number that will be done to 41 1.1 christos record a miss. 42 1.1 christos 43 1.1 christos OPENSSL_LH_stats_bio(), OPENSSL_LH_node_stats_bio() and OPENSSL_LH_node_usage_stats_bio() 44 1.1 christos are the same as the above, except that the output goes to a B<BIO>. 45 1.1 christos 46 1.1 christos =head1 RETURN VALUES 47 1.1 christos 48 1.1 christos These functions do not return values. 49 1.1 christos 50 1.1 christos =head1 NOTE 51 1.1 christos 52 1.1 christos These calls should be made under a read lock. Refer to 53 1.1 christos L<OPENSSL_LH_COMPFUNC(3)/NOTE> for more details about the locks required 54 1.1 christos when using the LHASH data structure. 55 1.1 christos 56 1.1 christos =head1 SEE ALSO 57 1.1 christos 58 1.1 christos L<bio(7)>, L<OPENSSL_LH_COMPFUNC(3)> 59 1.1 christos 60 1.1 christos =head1 COPYRIGHT 61 1.1 christos 62 1.1.1.2 christos Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved. 63 1.1 christos 64 1.1.1.2 christos Licensed under the Apache License 2.0 (the "License"). You may not use 65 1.1 christos this file except in compliance with the License. You can obtain a copy 66 1.1 christos in the file LICENSE in the source distribution or at 67 1.1 christos L<https://www.openssl.org/source/license.html>. 68 1.1 christos 69 1.1 christos =cut 70