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