internal/memorylimiter/iruntime/total_memory_other.go
raw| 1 | // Copyright The OpenTelemetry Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | //go:build !linux |
| 5 | |
| 6 | package iruntime // import "go.opentelemetry.io/collector/internal/memorylimiter/iruntime" |
| 7 | |
| 8 | // TotalMemory returns total available memory for non-linux platforms. |
| 9 | func TotalMemory() (uint64, error) { |
| 10 | return readMemInfo() |
| 11 | } |