| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | =pod | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 NAME | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 22:46:29 +08:00
										 |  |  | OPENSSL_LH_stats, OPENSSL_LH_node_stats, OPENSSL_LH_node_usage_stats, | 
					
						
							|  |  |  | OPENSSL_LH_stats_bio, | 
					
						
							|  |  |  | OPENSSL_LH_node_stats_bio, OPENSSL_LH_node_usage_stats_bio - LHASH statistics | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | =head1 SYNOPSIS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  #include <openssl/lhash.h> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 22:46:29 +08:00
										 |  |  |  void OPENSSL_LH_stats(LHASH *table, FILE *out); | 
					
						
							|  |  |  |  void OPENSSL_LH_node_stats(LHASH *table, FILE *out); | 
					
						
							|  |  |  |  void OPENSSL_LH_node_usage_stats(LHASH *table, FILE *out); | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 22:46:29 +08:00
										 |  |  |  void OPENSSL_LH_stats_bio(LHASH *table, BIO *out); | 
					
						
							|  |  |  |  void OPENSSL_LH_node_stats_bio(LHASH *table, BIO *out); | 
					
						
							|  |  |  |  void OPENSSL_LH_node_usage_stats_bio(LHASH *table, BIO *out); | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | =head1 DESCRIPTION | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The B<LHASH> structure records statistics about most aspects of | 
					
						
							| 
									
										
										
										
											2017-07-03 00:16:38 +08:00
										 |  |  | accessing the hash table. | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 22:46:29 +08:00
										 |  |  | OPENSSL_LH_stats() prints out statistics on the size of the hash table, how | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | many entries are in it, and the number and result of calls to the | 
					
						
							|  |  |  | routines in this library. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 22:46:29 +08:00
										 |  |  | OPENSSL_LH_node_stats() prints the number of entries for each 'bucket' in the | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | hash table. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 22:46:29 +08:00
										 |  |  | OPENSSL_LH_node_usage_stats() prints out a short summary of the state of the | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | hash table.  It prints the 'load' and the 'actual load'.  The load is | 
					
						
							|  |  |  | the average number of data items per 'bucket' in the hash table.  The | 
					
						
							|  |  |  | 'actual load' is the average number of items per 'bucket', but only | 
					
						
							|  |  |  | for buckets which contain entries.  So the 'actual load' is the | 
					
						
							|  |  |  | average number of searches that will need to find an item in the hash | 
					
						
							|  |  |  | table, while the 'load' is the average number that will be done to | 
					
						
							|  |  |  | record a miss. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 22:46:29 +08:00
										 |  |  | OPENSSL_LH_stats_bio(), OPENSSL_LH_node_stats_bio() and OPENSSL_LH_node_usage_stats_bio() | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | are the same as the above, except that the output goes to a B<BIO>. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 RETURN VALUES | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | These functions do not return values. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-28 08:09:18 +08:00
										 |  |  | =head1 NOTE | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | These calls should be made under a read lock. Refer to | 
					
						
							|  |  |  | L<OPENSSL_LH_COMPFUNC(3)/NOTE> for more details about the locks required | 
					
						
							|  |  |  | when using the LHASH data structure. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | =head1 SEE ALSO | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-28 08:09:18 +08:00
										 |  |  | L<bio(7)>, L<OPENSSL_LH_COMPFUNC(3)> | 
					
						
							| 
									
										
										
										
											2000-01-31 06:16:47 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-18 23:44:05 +08:00
										 |  |  | =head1 COPYRIGHT | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-28 08:09:18 +08:00
										 |  |  | Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved. | 
					
						
							| 
									
										
										
										
											2016-05-18 23:44:05 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-06 21:04:44 +08:00
										 |  |  | Licensed under the Apache License 2.0 (the "License").  You may not use | 
					
						
							| 
									
										
										
										
											2016-05-18 23:44:05 +08:00
										 |  |  | this file except in compliance with the License.  You can obtain a copy | 
					
						
							|  |  |  | in the file LICENSE in the source distribution or at | 
					
						
							|  |  |  | L<https://www.openssl.org/source/license.html>. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =cut |