internal/mode/webserver/webserver_unsupported.go (6 lines of code) (raw):
//go:build !linux
package webserver
import (
sglog "github.com/sourcegraph/log"
)
func mustRegisterMemoryMapMetrics(_ sglog.Logger) {
// The memory map metrics are collected via /proc, which
// is only available on linux-based operating systems.
// as far as I can tell, Windows does not have the same
// virtual memory statistics as Linux.
// For example, Windows does not have the concept of
// a count of memory maps, and a max number of memory maps
}