1OPENSSL_LH_STATS(3ossl) OpenSSL OPENSSL_LH_STATS(3ossl)
2
3
4
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
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
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 and how many entries are in it. For historical reasons, this function
27 also outputs a number of additional statistics, but the tracking of
28 these statistics is no longer supported and these statistics are always
29 reported as zero.
30
31 OPENSSL_LH_node_stats() prints the number of entries for each 'bucket'
32 in the hash table.
33
34 OPENSSL_LH_node_usage_stats() prints out a short summary of the state
35 of the hash table. It prints the 'load' and the 'actual load'. The
36 load is the average number of data items per 'bucket' in the hash
37 table. The 'actual load' is the average number of items per 'bucket',
38 but only for buckets which contain entries. So the 'actual load' is
39 the average number of searches that will need to find an item in the
40 hash table, while the 'load' is the average number that will be done to
41 record a miss.
42
43 OPENSSL_LH_stats_bio(), OPENSSL_LH_node_stats_bio() and
44 OPENSSL_LH_node_usage_stats_bio() are the same as the above, except
45 that the output goes to a BIO.
46
48 These functions do not return values.
49
51 These calls should be made under a read lock. Refer to "NOTE" in
52 OPENSSL_LH_COMPFUNC(3) for more details about the locks required when
53 using the LHASH data structure.
54
56 bio(7), OPENSSL_LH_COMPFUNC(3)
57
59 Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
60
61 Licensed under the Apache License 2.0 (the "License"). You may not use
62 this file except in compliance with the License. You can obtain a copy
63 in the file LICENSE in the source distribution or at
64 <https://www.openssl.org/source/license.html>.
65
66
67
683.0.5 2022-11-01 OPENSSL_LH_STATS(3ossl)