summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-05-30 00:16:52 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-07-01 19:18:06 -0400
commit4db0cff16a1b16671384102f1876bebb7f481d89 (patch)
treed5d003e63905b0f647cbc798f25fbf7255199f96 /lib/command.c
parent8186327f3d2a5028b55eab9a04c31b5ccd68afd1 (diff)
lib: add statistics for hash tables
Adds a function that calculates various statistics on our implementation of a hash table. These are useful for evaluating performance. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index f019473308..c9d797844e 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -2522,6 +2522,7 @@ cmd_init (int terminal)
workqueue_cmd_init ();
}
+ hash_cmd_init ();
install_element (CONFIG_NODE, &hostname_cmd);
install_element (CONFIG_NODE, &no_hostname_cmd);
install_element (CONFIG_NODE, &frr_version_defaults_cmd);