()
| 126 | } |
| 127 | |
| 128 | func memoryUsage() uint64 { |
| 129 | var m runtime.MemStats |
| 130 | runtime.ReadMemStats(&m) |
| 131 | return m.Alloc |
| 132 | } |
| 133 | |
| 134 | func humanizeBytes(b uint64) string { |
| 135 | const unit = 1024 |
no outgoing calls
no test coverage detected
searching dependent graphs…