MemoryUsage is an alias for ApproximateMemoryUsage retained for backwards compatibility with existing callers.
(i interface{})
| 194 | // MemoryUsage is an alias for ApproximateMemoryUsage retained for backwards |
| 195 | // compatibility with existing callers. |
| 196 | func MemoryUsage(i interface{}) uint64 { |
| 197 | return ApproximateMemoryUsage(i) |
| 198 | } |
| 199 | |
| 200 | // FormatBytes formats a byte count as a human-readable string. |
| 201 | // Returns "0 B" for zero, otherwise scales to KB/MB/GB/TB/PB/EB. |
no test coverage detected