Mavryk_benchmark.NamespaceNamespace 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
val encoding : t Mavryk_base.TzPervasives.Data_encoding.tval empty : tThe empty namespace, printed as "."
val is_empty : t -> boolval is_singleton : t -> boolTests if the namespace contains only one name
val hash : t -> intval to_string : t -> stringval of_string : string -> tval to_filename : t -> stringString 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"
type cons = string -> tThe type of namespace constructors, which represent intermediate namespaces. Given a string, it returns a terminal namespace which is then used for benchmark names.
val root : consThe 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/
val basename : t -> stringReturns the basename of t, which is the name furthest from the root. basename empty is ".". basename (cons s) is s for any constructor cons.
val to_list : t -> string listReturns 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.
val of_list : string list -> tReturns 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.
val pp : Stdlib.Format.formatter -> t -> unitPretty printer
val pp_short : Stdlib.Format.formatter -> t -> unitShort printer that only prints the basename of the namespace
module Hashtbl : Mavryk_base.TzPervasives.Hashtbl.SeededS with type key = tmodule Set : Mavryk_base.TzPervasives.Set.S with type elt = tmodule Map : Mavryk_base.TzPervasives.Map.S with type key = t