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"
|
|
|
|
|
|
|
|
"github.com/shirou/gopsutil/internal/common"
|
|
|
|
)
|
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
|
|
|
|
}
|