1FUNCTION::BYTES_TO_S(3stap)      Memory Tapset     FUNCTION::BYTES_TO_S(3stap)
2
3
4

NAME

6       function::bytes_to_string - Human readable string for given bytes
7

SYNOPSIS

9           bytes_to_string:string(bytes:long)
10

ARGUMENTS

12       bytes
13           Number of bytes to translate.
14

DESCRIPTION

16       Returns a string representing the number of bytes (up to 1024 bytes),
17       the number of kilobytes (when less than 1024K) postfixed by 'K', the
18       number of megabytes (when less than 1024M) postfixed by 'M' or the
19       number of gigabytes postfixed by 'G'. If representing K, M or G, and
20       the number is amount is less than 100, it includes a '.' plus the
21       remainer. The returned string will be 5 characters wide (padding with
22       whitespace at the front) unless negative or representing more than
23       9999G bytes.
24

SEE ALSO

26       tapset::proc_mem(3stap)
27
28
29
30SystemTap Tapset Reference       November 2022     FUNCTION::BYTES_TO_S(3stap)
Impressum