Std.App.Metrics.Metrics
type
MetricsThis declaration introduces a public type.
What it does
Everything a program reports about itself.
Declarations are held in a map for lookup and an array for the order they
were declared in, because both questions are asked: rendering walks them in
order, and every measurement looks one up. A single array answers the first
and makes the second a scan of every metric the program has, on every
count — which is the one operation a busy program does most.
Series are keyed by their labels rather than held in a list, for the same
reason and more sharply: a metric broken down by route and method has as
many series as the product of those, and finding one by comparing label
lists reads every series to find one.
Read the signature
- This declaration has no value signature because it introduces a type or trait.
