mitchellh / go-ps

Find, list, and inspect processes from Go (golang).
MIT License
1.46k stars 250 forks source link

implements freebsd,amd64 #1

Closed shirou closed 8 years ago

shirou commented 10 years ago

Implemented freebsd,amd64 by using syscall.RawSyscall6 which means no need cgo. Tested on FreeBSD 8.4. I think it could work on newer version.

Since I converted the kinfo_proc in sys/user.h to golang struct, it is easy to get other process information.

shirou commented 10 years ago

FYI: I have started porting python psutil(http://pythonhosted.org/psutil/) to golang.

https://github.com/shirou/gopsutil

Now it can get other information such as Disk_partitions on freebsd, linux and windows. see Current status in README. Please note this not need cgo.

Since this is very early stage, often become broken and API is not stable, but I appreciate if you try this.

Thank you.

mitchellh commented 8 years ago

LGTM. Thanks!