1OPENSSL_LH_STATS(3)                 OpenSSL                OPENSSL_LH_STATS(3)
2
3
4

NAME

6       OPENSSL_LH_stats, OPENSSL_LH_node_stats, OPENSSL_LH_node_usage_stats,
7       OPENSSL_LH_stats_bio, OPENSSL_LH_node_stats_bio,
8       OPENSSL_LH_node_usage_stats_bio - LHASH statistics
9

SYNOPSIS

11        #include <openssl/lhash.h>
12
13        void OPENSSL_LH_stats(LHASH *table, FILE *out);
14        void OPENSSL_LH_node_stats(LHASH *table, FILE *out);
15        void OPENSSL_LH_node_usage_stats(LHASH *table, FILE *out);
16
17        void OPENSSL_LH_stats_bio(LHASH *table, BIO *out);
18        void OPENSSL_LH_node_stats_bio(LHASH *table, BIO *out);
19        void OPENSSL_LH_node_usage_stats_bio(LHASH *table, BIO *out);
20

DESCRIPTION

22       The LHASH structure records statistics about most aspects of accessing
23       the hash table.
24
25       OPENSSL_LH_stats() prints out statistics on the size of the hash table,
26       how many entries are in it, and the number and result of calls to the
27       routines in this library.
28
29       OPENSSL_LH_node_stats() prints the number of entries for each 'bucket'
30       in the hash table.
31
32       OPENSSL_LH_node_usage_stats() prints out a short summary of the state
33       of the hash table.  It prints the 'load' and the 'actual load'.  The
34       load is the average number of data items per 'bucket' in the hash
35       table.  The 'actual load' is the average number of items per 'bucket',
36       but only for buckets which contain entries.  So the 'actual load' is
37       the average number of searches that will need to find an item in the
38       hash table, while the 'load' is the average number that will be done to
39       record a miss.
40
41       OPENSSL_LH_stats_bio(), OPENSSL_LH_node_stats_bio() and
42       OPENSSL_LH_node_usage_stats_bio() are the same as the above, except
43       that the output goes to a BIO.
44

RETURN VALUES

46       These functions do not return values.
47

NOTE

49       These calls should be made under a read lock. Refer to "NOTE" in
50       OPENSSL_LH_COMPFUNC(3) for more details about the locks required when
51       using the LHASH data structure.
52

SEE ALSO

54       bio(7), OPENSSL_LH_COMPFUNC(3)
55
57       Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
58
59       Licensed under the OpenSSL license (the "License").  You may not use
60       this file except in compliance with the License.  You can obtain a copy
61       in the file LICENSE in the source distribution or at
62       <https://www.openssl.org/source/license.html>.
63
64
65
661.1.1q                            2022-07-21               OPENSSL_LH_STATS(3)
Impressum