MCPcopy Create free account
hub / github.com/cortexproject/cortex / isSupported

Function isSupported

pkg/util/process/collector.go:121–124  ·  view source on GitHub ↗
(procPath string)

Source from the content-addressed store, hash-verified

119}
120
121func isSupported(procPath string) bool {
122 _, err := os.Stat(vmMapsLimitPath(procPath))
123 return err == nil
124}
125
126func processMapsPath(procPath string, pid int) string {
127 return filepath.Join(procPath, strconv.Itoa(pid), "maps")

Callers 1

newProcessCollectorFunction · 0.70

Calls 1

vmMapsLimitPathFunction · 0.85

Tested by

no test coverage detected