mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
This PR only moves all the internal code used by internal/memorylimiter under the same directory, next PR will extract that in a different module to limit dependencies. Signed-off-by: Bogdan Drutu <[email protected]>
12 lines
322 B
Go
12 lines
322 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//go:build !linux
|
|
|
|
package iruntime // import "go.opentelemetry.io/collector/internal/memorylimiter/iruntime"
|
|
|
|
// TotalMemory returns total available memory for non-linux platforms.
|
|
func TotalMemory() (uint64, error) {
|
|
return readMemInfo()
|
|
}
|