Commit Graph

14 Commits (37b6b4051fa048ffdcc02722111d820637bcd7f2)

Author SHA1 Message Date
WAKAYAMA shirou 37b6b4051f [process]freebsd: process_freebsd_amd64.go is now generated by cgo godefs. 9 years ago
Chris Gilling d098bf135f process: fix bug in CmdlineSlice where cmdline is empty
Sometimes (at least on linux) cmdline is empty, this was causing
a panic.
9 years ago
Chris Gilling b8c40ac83c process: add CmdlineSlice function for linux + freebsd
This allows for getting more exact information about each argument
especially if there are arguments that have spaces in them.

This was not implemented for darwin or for windows because they
both currently have not way of properly parsing the cmdline string.
Darwin parses the output of 'ps' which is already whitespace
segmented, and windows just has the cmdline string.
9 years ago
Johan Walles 70444b571b process: Implement platform independent MemoryPercent()
It calls mem.VirtualMemory() and process.MemoryInfo(), so on the platforms where
those work MemoryPercent() will as well.

Tested on Darwin.
9 years ago
WAKAYAMA shirou 0af91ba32b [disk,process]freebsd: binary.go moved to internal. 9 years ago
Shirou WAKAYAMA d680853370 net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile. 9 years ago
Masayoshi Sekimura 3a1fa5dc80 format go program with go 1.5.2 "go fmt" 9 years ago
Nikolay Sivko 45dcaa3b91 process[freebsd]: Cmdline, IOCounters, CPUTimes implemented 9 years ago
Shirou WAKAYAMA dd13300833 process[linux,freebsd,darwin]: implements Children using pgrep. 9 years ago
Shirou WAKAYAMA 7288e9a5af common[all]: add internal 10 years ago
Shirou WAKAYAMA c61c09295c process: delete CPUPercent on the every architecture dependent part. 10 years ago
WAKAYAMA shirou be5b5a5754 move CallSysCall to common/common_freebsd 10 years ago
Shirou WAKAYAMA 13cd195a7e change package name. 10 years ago
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24 10 years ago