View Source erlperf_file_log (erlperf v2.1.0)

Writes monitoring events to I/O device.

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().
Formats time duration, from nanoseconds to seconds Example: 88 -> 88 ns, 88000 -> 88 us, 10000000 -> 10 ms
-spec format_number(non_neg_integer()) -> string().
Formats number rounded to 3 digits. Example: 88 -> 88, 880000 -> 880 Ki, 100501 -> 101 Ki
-spec format_size(non_neg_integer()) -> string().
Formats size (bytes) rounded to 3 digits. Unlike @see format_number, used 1024 as a base, so 200 * 1024 is 200 Kb.
Link to this function

handle_call(Request, From, State)

View Source
Link to this function

handle_cast(Request, State)

View Source
-spec start_link(Filename :: string() | file:io_device()) ->
              {ok, Pid :: pid()} | {error, Reason :: term()}.
Starts the server