IgnoreModules configure the memory controller to not read memory metrics for some module names (e.g. passing "memsw" would avoid all the memory.memsw.* entries)
(names ...string)
| 168 | // IgnoreModules configure the memory controller to not read memory metrics for some |
| 169 | // module names (e.g. passing "memsw" would avoid all the memory.memsw.* entries) |
| 170 | func IgnoreModules(names ...string) func(*memoryController) { |
| 171 | return func(mc *memoryController) { |
| 172 | for _, name := range names { |
| 173 | mc.ignored[name] = struct{}{} |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | // OptionalSwap allows the memory controller to not fail if cgroups is not accounting |
| 179 | // Swap memory (there are no memory.memsw.* entries) |
no outgoing calls
searching dependent graphs…