shirou / gopsutil

psutil for golang
Other
10.66k stars 1.59k forks source link

Why does getting the process status of the Windows system report an error: 'not implemented yet' #1708

Closed achie006 closed 2 months ago

achie006 commented 2 months ago

Describe the bug [] not implemented yet [] not implemented yet [] not implemented yet [] not implemented yet [] not implemented yet

To Reproduce

// paste example code reproducing the bug you are reporting
import (
    "fmt"
    "github.com/shirou/gopsutil/v4/process"
)

type ProcessesInfo struct {
    Pid                 int32
    Name                string
    UserName            string
    CreateTime          string
    Cmd                 string
    Status              string
    CpuUsage            float64
    MemoryUsage         float64
    VirtualMemoryBytes  int64
    ResidentMemoryBytes int64
    ReadBytesTotal      int64
    WriteBytesTotal     int64
    NumThreads          int32
    OpenFiles           int64
}

func main() {
    processes, _ := process.Processes()

    for _, p := range processes {
        fmt.Println(p.Status())
    }
}