Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBytes ¶
Example ¶
package main import ( "fmt" "github.com/dalibo/ldap2pg/internal/perf" ) func main() { var value int value = 5546875 fmt.Printf("%dB = %s\n", value, perf.FormatBytes(value)) value = 4 fmt.Printf("%dB = %s\n", value, perf.FormatBytes(value)) value = 900 fmt.Printf("%dB = %s\n", value, perf.FormatBytes(value)) }
Output: 5546875B = 5.3MiB 4B = 4B 900B = 0.9KiB
func ReadVMPeak ¶
func ReadVMPeak() int
Types ¶
Click to show internal directories.
Click to hide internal directories.