Commit Graph

63 Commits (d94da856e5ecbf925b53392f856c732a01b7c048)

Author SHA1 Message Date
Shirou WAKAYAMA fc513b6f9a proces[darwin]: change exec.Command to interface to enable mocking.
Add common.invoker interface to mock exec.Command. common.FakeInvoker returns
expected file if exists instead of invoke exec.Command.
Currenly, mocking is enabled only process.Pids(). I will expand to other funcs incrementally.
10 years ago
jay park 2984accfa1 return error when CPUTimes fails on callPs, modify comments on ReadLines 10 years ago
Hideo Hattori 4d4bd26b06 implement NumThreads on darwin. use ps command 10 years ago
Hideo Hattori 6ec0f72a72 implement CPUTimes (and CPUPercent) on darwin. use ps command. 10 years ago
Shirou WAKAYAMA 1851e63d38 process: callPs can get from all process and Ppid() uses ps command on darwin. 10 years ago
Shirou WAKAYAMA 6227460dc5 process: if pid < 0, skip it. and Cmdline retruned Joined string. 10 years ago
若山史郎 9d38e5c995 process: add meminfo, cmdline on darwin. 10 years ago
若山史郎 20c3ddbfe5 process: fix darwin kinfo_proc struct and introduce creation by godef. 10 years ago
Shirou WAKAYAMA c61c09295c process: delete CPUPercent on the every architecture dependent part. 10 years ago
若山史郎 d1b9134c32 process: use syscall in common on darwin 10 years ago
Shirou WAKAYAMA 4973aa73f9 start to use godefs to get C structs. 10 years ago
Shirou WAKAYAMA 13cd195a7e change package name. 10 years ago
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24 10 years ago