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