| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- // +build !darwin,!linux,!freebsd,!openbsd,!windows,!solaris
- package process
- import (
- "context"
- "syscall"
- "github.com/shirou/gopsutil/cpu"
- "github.com/shirou/gopsutil/internal/common"
- "github.com/shirou/gopsutil/net"
- )
- type MemoryMapsStat struct {
- Path string `json:"path"`
- Rss uint64 `json:"rss"`
- Size uint64 `json:"size"`
- Pss uint64 `json:"pss"`
- SharedClean uint64 `json:"sharedClean"`
- SharedDirty uint64 `json:"sharedDirty"`
- PrivateClean uint64 `json:"privateClean"`
- PrivateDirty uint64 `json:"privateDirty"`
- Referenced uint64 `json:"referenced"`
- Anonymous uint64 `json:"anonymous"`
- Swap uint64 `json:"swap"`
- }
- type MemoryInfoExStat struct {
- }
- func pidsWithContext(ctx context.Context) ([]int32, error) {
- return nil, common.ErrNotImplementedError
- }
- func ProcessesWithContext(ctx context.Context) ([]*Process, error) {
- return nil, common.ErrNotImplementedError
- }
- func PidExistsWithContext(ctx context.Context, pid int32) (bool, error) {
- return false, common.ErrNotImplementedError
- }
- func (p *Process) PpidWithContext(ctx context.Context) (int32, error) {
- return 0, common.ErrNotImplementedError
- }
- func (p *Process) NameWithContext(ctx context.Context) (string, error) {
- return "", common.ErrNotImplementedError
- }
- func (p *Process) TgidWithContext(ctx context.Context) (int32, error) {
- return 0, common.ErrNotImplementedError
- }
- func (p *Process) ExeWithContext(ctx context.Context) (string, error) {
- return "", common.ErrNotImplementedError
- }
- func (p *Process) CmdlineWithContext(ctx context.Context) (string, error) {
- return "", common.ErrNotImplementedError
- }
- func (p *Process) CmdlineSliceWithContext(ctx context.Context) ([]string, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) createTimeWithContext(ctx context.Context) (int64, error) {
- return 0, common.ErrNotImplementedError
- }
- func (p *Process) CwdWithContext(ctx context.Context) (string, error) {
- return "", common.ErrNotImplementedError
- }
- func (p *Process) ParentWithContext(ctx context.Context) (*Process, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) StatusWithContext(ctx context.Context) (string, error) {
- return "", common.ErrNotImplementedError
- }
- func (p *Process) ForegroundWithContext(ctx context.Context) (bool, error) {
- return false, common.ErrNotImplementedError
- }
- func (p *Process) UidsWithContext(ctx context.Context) ([]int32, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) GidsWithContext(ctx context.Context) ([]int32, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) GroupsWithContext(ctx context.Context) ([]int32, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) TerminalWithContext(ctx context.Context) (string, error) {
- return "", common.ErrNotImplementedError
- }
- func (p *Process) NiceWithContext(ctx context.Context) (int32, error) {
- return 0, common.ErrNotImplementedError
- }
- func (p *Process) IOniceWithContext(ctx context.Context) (int32, error) {
- return 0, common.ErrNotImplementedError
- }
- func (p *Process) RlimitWithContext(ctx context.Context) ([]RlimitStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) RlimitUsageWithContext(ctx context.Context, gatherUsed bool) ([]RlimitStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) IOCountersWithContext(ctx context.Context) (*IOCountersStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) NumCtxSwitchesWithContext(ctx context.Context) (*NumCtxSwitchesStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) NumFDsWithContext(ctx context.Context) (int32, error) {
- return 0, common.ErrNotImplementedError
- }
- func (p *Process) NumThreadsWithContext(ctx context.Context) (int32, error) {
- return 0, common.ErrNotImplementedError
- }
- func (p *Process) ThreadsWithContext(ctx context.Context) (map[int32]*cpu.TimesStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) TimesWithContext(ctx context.Context) (*cpu.TimesStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) CPUAffinityWithContext(ctx context.Context) ([]int32, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) MemoryInfoWithContext(ctx context.Context) (*MemoryInfoStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) MemoryInfoExWithContext(ctx context.Context) (*MemoryInfoExStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) PageFaultsWithContext(ctx context.Context) (*PageFaultsStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) ChildrenWithContext(ctx context.Context) ([]*Process, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFilesStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) ConnectionsWithContext(ctx context.Context) ([]net.ConnectionStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) ConnectionsMaxWithContext(ctx context.Context, max int) ([]net.ConnectionStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) NetIOCountersWithContext(ctx context.Context, pernic bool) ([]net.IOCountersStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) MemoryMapsWithContext(ctx context.Context, grouped bool) (*[]MemoryMapsStat, error) {
- return nil, common.ErrNotImplementedError
- }
- func (p *Process) SendSignalWithContext(ctx context.Context, sig syscall.Signal) error {
- return common.ErrNotImplementedError
- }
- func (p *Process) SuspendWithContext(ctx context.Context) error {
- return common.ErrNotImplementedError
- }
- func (p *Process) ResumeWithContext(ctx context.Context) error {
- return common.ErrNotImplementedError
- }
- func (p *Process) TerminateWithContext(ctx context.Context) error {
- return common.ErrNotImplementedError
- }
- func (p *Process) KillWithContext(ctx context.Context) error {
- return common.ErrNotImplementedError
- }
- func (p *Process) UsernameWithContext(ctx context.Context) (string, error) {
- return "", common.ErrNotImplementedError
- }
- func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) {
- return nil, common.ErrNotImplementedError
- }
|