2017-03-14 14:40:30 -05:00
|
|
|
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
|
2016-08-22 15:31:26 -07:00
|
|
|
|
|
|
|
package mem
|
|
|
|
|
2017-12-31 15:25:49 +09:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/shirou/gopsutil/internal/common"
|
|
|
|
)
|
2016-08-22 15:31:26 -07:00
|
|
|
|
|
|
|
func VirtualMemory() (*VirtualMemoryStat, error) {
|
2017-12-31 15:25:49 +09:00
|
|
|
return VirtualMemoryWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
|
2016-08-22 15:31:26 -07:00
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func SwapMemory() (*SwapMemoryStat, error) {
|
2017-12-31 15:25:49 +09:00
|
|
|
return SwapMemoryWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
|
2016-08-22 15:31:26 -07:00
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|
2021-08-18 09:52:13 -04:00
|
|
|
|
|
|
|
func SwapDevices() ([]*SwapDevice, error) {
|
|
|
|
return SwapDevicesWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) {
|
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|