View Source erlperf_file_log (erlperf v2.1.0)
Link to this section Summary
Functions
Formats time duration, from nanoseconds to seconds Example: 88 -> 88 ns, 88000 -> 88 us, 10000000 -> 10 ms
Formats number rounded to 3 digits. Example: 88 -> 88, 880000 -> 880 Ki, 100501 -> 101 Ki
Formats size (bytes) rounded to 3 digits. Unlike @see format_number, used 1024 as a base, so 200 * 1024 is 200 Kb.
Starts the server
Link to this section Functions
-spec format_duration(non_neg_integer() | infinity) -> string().
-spec format_number(non_neg_integer()) -> string().
-spec format_size(non_neg_integer()) -> string().
-spec start_link(Filename :: string() | file:io_device()) -> {ok, Pid :: pid()} | {error, Reason :: term()}.