()
| 3 | import "github.com/GoMudEngine/GoMud/internal/util" |
| 4 | |
| 5 | func GetMemoryUsage() map[string]util.MemoryResult { |
| 6 | lock.Lock() |
| 7 | defer lock.Unlock() |
| 8 | |
| 9 | ret := map[string]util.MemoryResult{} |
| 10 | |
| 11 | ret["badCommands"] = util.MemoryResult{Memory: util.MemoryUsage(badCommands), Count: len(badCommands)} |
| 12 | |
| 13 | return ret |
| 14 | } |
| 15 | |
| 16 | func init() { |
| 17 | util.AddMemoryReporter(`BadInputTracker`, GetMemoryUsage) |
nothing calls this directly
no test coverage detected