Tezos_benchmark.NamespaceSourceNamespace implements a type for the name of the benchmarks in Snoop It can be seen as a path of several names, similar to a file system
The type of the namespaces
String representation without '/', usable for file names. It is usable for Graphviz vertex names with String.escaped.
Example: to_filename (of_string "foo/bar/gee.txt") = "foo__bar__gee.txt"
The type of namespace constructors, which represent intermediate namespaces. Given a string, it returns a terminal namespace which is then used for benchmark names.
The basic constructor for namespaces, at the root of every other namespace. root "bench" would return the namespace "bench" for a benchmark
Creates a constructor by appending a name to another constructor If ns represents the namespace A/B/C/, then make ns "D" would return the constructor for the namespace A/B/C/D/
Returns the basename of t, which is the name furthest from the root. basename empty is ".". basename (cons s) is s for any constructor cons.
Returns the path of n as a list. The head of the list is the start of the path, which is always ".". If n is empty, only returns ["."]. Never returns the empty list.
Returns a path represented by the given list. If the first element is ".", removes it. Checks that all elements don't contain '/'.
name_match pattern name returns true if and only if pattern is a prefix of name.
Pretty printer
Short printer that only prints the basename of the namespace