Exometer utility functions.
timestamp() = non_neg_integer()
clear_event_flag/2 | |
drop_duplicates/1 |
drop_duplicates/1 will drop all duplicate elements from a list of tuples identified by their first element. |
ensure_all_started/1 | |
get_datapoints/1 | |
get_env/2 | |
get_opt/2 | |
get_opt/3 | |
get_statistics/1 | |
get_statistics/3 | Calculate statistics from a sorted list of values. |
get_statistics2/4 | |
get_status/1 | |
histogram/1 | |
histogram/2 | |
perc/2 | |
pick_items/2 | Pick values from specified positions in a sorted list of numbers. |
report_type/3 | |
seed/0 | |
seed/0 | |
seed/1 | |
seed/1 | |
seed0/0 | |
seed0/0 | |
set_call_count/2 | |
set_call_count/3 | |
set_event_flag/2 | |
set_status/2 | |
table/0 | |
tables/0 | |
test_event_flag/2 | |
timestamp/0 | Generate a millisecond-resolution timestamp. |
timestamp_to_datetime/1 | Convert timestamp to a regular datetime. |
uniform/0 | |
uniform/0 | |
uniform/1 | |
uniform/1 |
clear_event_flag(X1, St) -> any()
drop_duplicates(List0::[tuple()]) -> [tuple()]
drop_duplicates/1
will drop all duplicate elements from a list of tuples identified by their first element.
Elements which are not tuples will be dropped as well.
If called with a non-list argument, the argument is returned as is.
ensure_all_started(App::atom()) -> {ok, [atom()]} | {error, term()}
get_datapoints(Exometer_entry) -> any()
get_env(Key, Default) -> any()
get_opt(K, Opts) -> any()
get_opt(K, Opts, Default) -> any()
get_statistics(Values) -> any()
get_statistics(Length::non_neg_integer(), Total::non_neg_integer(), Sorted::list()) -> [{atom(), number()}]
Calculate statistics from a sorted list of values.
This function assumes that you have already sorted the list, and now the number and sum of the elements in the list.
The stats calculated are min, max, mean, median and the 50th, 75th, 90th, 95th, 99th, and 99.9th percentiles (note that the 99.9th percentile is labeled 999).
This function is similar to bear:get_statistics_subset/2
.
mean
refers to the arithmetic mean.
Fulpatchad med min/max av Magnus Feuer.
get_statistics2(L, Sorted, Total, Mean) -> any()
get_status(St) -> any()
histogram(Values) -> any()
histogram(Values, DataPoints) -> any()
perc(P, Len) -> any()
pick_items(Vals::[number()], Items::[{atom() | integer(), integer()}]) -> [{atom(), number()}]
Pick values from specified positions in a sorted list of numbers.
This function is used to extract datapoints (usually percentiles) from
a sorted list of values. Items
is a list of {Datapoint, Position}
entries.
report_type(Key, Extra, TypeMap) -> any()
seed() -> any()
seed() -> any()
seed(X1) -> any()
seed(X1) -> any()
seed0() -> any()
seed0() -> any()
set_call_count(X1, Bool) -> any()
set_call_count(M, F, Bool) -> any()
set_event_flag(X1, St) -> any()
set_status(X1, St) -> any()
table() -> any()
tables() -> any()
test_event_flag(X1, St) -> any()
timestamp() -> timestamp()
Generate a millisecond-resolution timestamp.
This timestamp format is used e.g. by the exometer_slide
and
exometer_histogram
implementations.
timestamp_to_datetime(TS::timestamp()) -> {calendar:datetime(), non_neg_integer()}
Convert timestamp to a regular datetime.
The timestamp is expected
uniform() -> any()
uniform() -> any()
uniform(N) -> any()
uniform(N) -> any()