2018-10-19 11:33:23 -07:00
|
|
|
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
|
2017-02-01 10:26:00 -08:00
|
|
|
|
|
|
|
package mem
|
|
|
|
|
2018-10-19 11:33:23 -07:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2020-11-06 20:48:38 -05:00
|
|
|
"github.com/shirou/gopsutil/v3/internal/common"
|
2018-10-19 11:33:23 -07:00
|
|
|
)
|
2017-02-01 10:26:00 -08:00
|
|
|
|
|
|
|
func VirtualMemory() (*VirtualMemoryStat, error) {
|
2018-10-19 11:33:23 -07:00
|
|
|
return VirtualMemoryWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
|
2017-02-01 10:26:00 -08:00
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func SwapMemory() (*SwapMemoryStat, error) {
|
2018-10-19 11:33:23 -07:00
|
|
|
return SwapMemoryWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
|
2017-02-01 10:26:00 -08:00
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|