Commit Graph

15 Commits (a369a8857c47ba9bcf8bbcf316897fa123d73639)

Author SHA1 Message Date
Shirou WAKAYAMA c50db4f462 net[darwin]: implement NetConnections().
Shirou WAKAYAMA d6ac361a24 process[darwin,linux]: implements Parent using lsof.
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.
jay park 2984accfa1 return error when CPUTimes fails on callPs, modify comments on ReadLines
Hideo Hattori 4d4bd26b06 implement NumThreads on darwin. use ps command
Hideo Hattori 6ec0f72a72 implement CPUTimes (and CPUPercent) on darwin. use ps command.
Shirou WAKAYAMA 1851e63d38 process: callPs can get from all process and Ppid() uses ps command on darwin.
Shirou WAKAYAMA 6227460dc5 process: if pid < 0, skip it. and Cmdline retruned Joined string.
若山史郎 9d38e5c995 process: add meminfo, cmdline on darwin.
若山史郎 20c3ddbfe5 process: fix darwin kinfo_proc struct and introduce creation by godef.
Shirou WAKAYAMA c61c09295c process: delete CPUPercent on the every architecture dependent part.
若山史郎 d1b9134c32 process: use syscall in common on darwin
Shirou WAKAYAMA 4973aa73f9 start to use godefs to get C structs.
Shirou WAKAYAMA 13cd195a7e change package name.
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24