Beamchmark.Formatters.Utils (Beamchmark v1.4.2)

Copy Markdown View Source

The module provides functions common for multiple formatters.

Summary

Functions

Takes memory in bytes and returns it as human-readable string.

Functions

format_memory(mem, decimal_places \\ 0)

@spec format_memory(integer() | :unknown, non_neg_integer()) :: String.t()

Takes memory in bytes and returns it as human-readable string.