2017-03-15 23:18:39 +00:00
|
|
|
// +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
|
2016-08-30 17:48:07 +00:00
|
|
|
|
|
|
|
package mem
|
|
|
|
|
2018-03-06 00:52:43 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/shirou/gopsutil/internal/common"
|
|
|
|
)
|
2016-08-30 17:48:07 +00:00
|
|
|
|
|
|
|
func VirtualMemory() (*VirtualMemoryStat, error) {
|
2018-03-06 00:52:43 +00:00
|
|
|
return VirtualMemoryWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
|
2016-08-30 17:48:07 +00:00
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func SwapMemory() (*SwapMemoryStat, error) {
|
2018-03-06 00:52:43 +00:00
|
|
|
return SwapMemoryWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
|
2016-08-30 17:48:07 +00:00
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|