OPENSSL_LH_stats.pod 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. =pod
  2. =head1 NAME
  3. OPENSSL_LH_stats, OPENSSL_LH_node_stats, OPENSSL_LH_node_usage_stats,
  4. OPENSSL_LH_stats_bio,
  5. OPENSSL_LH_node_stats_bio, OPENSSL_LH_node_usage_stats_bio - LHASH statistics
  6. =head1 SYNOPSIS
  7. #include <openssl/lhash.h>
  8. void OPENSSL_LH_stats(LHASH *table, FILE *out);
  9. void OPENSSL_LH_node_stats(LHASH *table, FILE *out);
  10. void OPENSSL_LH_node_usage_stats(LHASH *table, FILE *out);
  11. void OPENSSL_LH_stats_bio(LHASH *table, BIO *out);
  12. void OPENSSL_LH_node_stats_bio(LHASH *table, BIO *out);
  13. void OPENSSL_LH_node_usage_stats_bio(LHASH *table, BIO *out);
  14. =head1 DESCRIPTION
  15. The B<LHASH> structure records statistics about most aspects of
  16. accessing the hash table. This is mostly a legacy of Eric Young
  17. writing this library for the reasons of implementing what looked like
  18. a nice algorithm rather than for a particular software product.
  19. OPENSSL_LH_stats() prints out statistics on the size of the hash table, how
  20. many entries are in it, and the number and result of calls to the
  21. routines in this library.
  22. OPENSSL_LH_node_stats() prints the number of entries for each 'bucket' in the
  23. hash table.
  24. OPENSSL_LH_node_usage_stats() prints out a short summary of the state of the
  25. hash table. It prints the 'load' and the 'actual load'. The load is
  26. the average number of data items per 'bucket' in the hash table. The
  27. 'actual load' is the average number of items per 'bucket', but only
  28. for buckets which contain entries. So the 'actual load' is the
  29. average number of searches that will need to find an item in the hash
  30. table, while the 'load' is the average number that will be done to
  31. record a miss.
  32. OPENSSL_LH_stats_bio(), OPENSSL_LH_node_stats_bio() and OPENSSL_LH_node_usage_stats_bio()
  33. are the same as the above, except that the output goes to a B<BIO>.
  34. =head1 RETURN VALUES
  35. These functions do not return values.
  36. =head1 SEE ALSO
  37. L<bio(3)>, L<lhash(3)>
  38. =head1 COPYRIGHT
  39. Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  40. Licensed under the OpenSSL license (the "License"). You may not use
  41. this file except in compliance with the License. You can obtain a copy
  42. in the file LICENSE in the source distribution or at
  43. L<https://www.openssl.org/source/license.html>.
  44. =cut