1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-29 13:49:21 +08:00

22 Commits

Author SHA1 Message Date
shirou
9d8191d6a6 Merge pull request #137 from shirou/process/add_netiocounter_for_linux
[WIP] net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile.
2016-01-29 23:41:05 +09:00
Cameron Sparr
f251637a93 Add -a when calling ps on darwin 2016-01-26 14:18:50 -07:00
Shirou WAKAYAMA
d680853370 net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile. 2016-01-21 17:31:05 +09:00
Olivier Vielpeau
ec627e67ac process[darwin] Fix unit of RSS and VMS
Should be bytes, `ps` returns Kbytes.
2015-12-14 12:13:27 +01:00
Shirou WAKAYAMA
dd13300833 process[linux,freebsd,darwin]: implements Children using pgrep. 2015-11-24 00:04:20 +09:00
Shirou WAKAYAMA
7288e9a5af common[all]: add internal 2015-10-20 00:04:57 +09:00
Shirou WAKAYAMA
b3cf7354f6 process[linux, darwin]: implements Connections using lsof. 2015-09-18 13:36:13 +09:00
Shirou WAKAYAMA
c50db4f462 net[darwin]: implement NetConnections(). 2015-09-16 16:13:00 +09:00
Shirou WAKAYAMA
d6ac361a24 process[darwin,linux]: implements Parent using lsof. 2015-09-16 13:06:07 +09:00
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.
2015-09-16 11:58:02 +09:00
jay park
2984accfa1 return error when CPUTimes fails on callPs, modify comments on ReadLines 2015-09-13 13:05:09 +09:00
Hideo Hattori
4d4bd26b06 implement NumThreads on darwin. use ps command 2015-06-16 22:01:02 +09:00
Hideo Hattori
6ec0f72a72 implement CPUTimes (and CPUPercent) on darwin. use ps command. 2015-06-15 16:35:52 +09:00
Shirou WAKAYAMA
1851e63d38 process: callPs can get from all process and Ppid() uses ps command on darwin. 2015-03-11 11:38:02 +09:00
Shirou WAKAYAMA
6227460dc5 process: if pid < 0, skip it. and Cmdline retruned Joined string. 2015-03-11 11:19:19 +09:00
若山史郎
9d38e5c995 process: add meminfo, cmdline on darwin. 2015-03-06 11:02:59 +09:00
若山史郎
20c3ddbfe5 process: fix darwin kinfo_proc struct and introduce creation by godef. 2015-03-06 10:05:58 +09:00
Shirou WAKAYAMA
c61c09295c process: delete CPUPercent on the every architecture dependent part. 2015-03-04 00:04:29 +09:00
若山史郎
d1b9134c32 process: use syscall in common on darwin 2015-03-01 22:29:37 +09:00
Shirou WAKAYAMA
4973aa73f9 start to use godefs to get C structs. 2014-12-31 00:13:52 +09:00
Shirou WAKAYAMA
13cd195a7e change package name. 2014-12-30 22:09:05 +09:00
Shirou WAKAYAMA
a4671fcc2a move subdirectories. refer to issue #24 2014-11-27 10:18:15 +09:00