Package measurement export utility functions to manipulate/format performance profile sample values.
CommonValueType returns the finest type from a set of compatible types.
Label returns the label used to describe a certain measurement.
Percentage computes the percentage of total of a value, and encodes it as a string. At least two digits of precision are printed.
Scale a measurement from an unit to a different unit and returns the scaled value and the target unit. The returned target unit will be empty if uninteresting (could be skipped).
ScaleProfiles updates the units in a set of profiles to make them compatible. It scales the profiles to the smallest unit to preserve data.
ScaledLabel scales the passed-in measurement (if necessary) and returns the label used to describe a float measurement.