memory.go 298 B

12345678910
  1. // Copyright (c) Tailscale Inc & contributors
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. package sysresources
  4. // TotalMemory returns the total accessible system memory, in bytes. If the
  5. // value cannot be determined, then 0 will be returned.
  6. func TotalMemory() uint64 {
  7. return totalMemoryImpl()
  8. }