Skip to main content

Module inspect

Module inspect 

Source
Expand description

This module holds various helpers for inspecting the internal structure of the B-tree.

Functionsยง

calculate_memory_usage
Calculates the memory usage of the B-tree. Note that it does not inspect keys and values internally. Meaning that if they store pointers internally, the memory they point to is not included.
get_height
Returns the height of the B-tree.
get_max_kvp_count
Returns the maximum number of key-value pairs that a single node can hold. This is an odd number.
get_min_kvp_count
Returns the minimum number of key-value pairs that a single node can hold. This is typically half of the maximum number of key-value pairs.