Shirou WAKAYAMA
7288e9a5af
common[all]: add internal
2015-10-20 00:04:57 +09:00
shirou
72109c3d21
Merge pull request #102 from kardianos/common_internal
...
Common internal
2015-10-19 23:53:24 +09:00
shirou
e7d2b34f97
Merge pull request #98 from kardianos/cpu_arm
...
cpu: support ARM CPUs.
2015-10-19 13:36:30 +09:00
Daniel Theophanes
726e7c6406
cpu: fix cpu test on small ARM device where CPU can be at 100%+rounding.
...
Fixes #99
2015-10-18 20:53:01 -07:00
Daniel Theophanes
0af895258e
common: rename package common to internal/common. Add ENV helper funcs.
...
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.
Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.
Fixes #100
2015-10-18 20:40:01 -07:00
Daniel Theophanes
69221741e8
cpu: allow override of /sys dir. Fix CPUInfo /proc + cpuinfo combine.
2015-10-18 09:46:21 -07:00
Daniel Theophanes
ab2cba55ee
Merge branch 'master' of https://github.com/shirou/gopsutil into cpu_arm
2015-10-18 09:29:54 -07:00
shirou
1e9aabb3c8
Merge pull request #97 from jchauncey/issue-94
...
chore(*): Fixes #94
2015-10-19 00:11:08 +09:00
Daniel Theophanes
9f2e6a74cc
cpu: support ARM CPUs.
...
ARM CPUs don't include the same fields as x86 and amd64 CPUs in
the /proc/cpuinfo list. Pull information from the /sys/...
device tree as well as updating when a CPU is done in cpuinfo.
Fixes #88
2015-10-17 12:25:18 -07:00
Jonathan Chauncey
0461c50666
chore(*): Fixes #94
...
Added the ability to fetch an alternative location for /proc via an
environment variable. If the env var is not set it will return /proc as
the default value.
2015-10-17 11:34:41 -06:00
Shirou WAKAYAMA
42af4a3e60
process[linux]: implements OpenFiles.
2015-10-17 00:41:14 +09:00
Shirou WAKAYAMA
8f48da88ea
update README
2015-10-17 00:35:12 +09:00
Shirou WAKAYAMA
202a805f46
mem[darwin]: fix printf verb.
2015-10-14 15:59:10 +09:00
shirou
7f6e8da3d0
Merge pull request #91 from client9/master
...
shirou/gopsutil#90 make hostinfo more robust
2015-10-14 15:56:17 +09:00
Nick Galbreath
99d93f93b2
shirou/gopsutil#90 make hostinfo more robust
2015-10-13 13:02:02 -07:00
shirou
6a274c3628
Merge pull request #89 from shirou/separetes_cgo_on_darwin
...
cpu[darwin]: separetes cpu_darwin into cgo and nocgo to get CPUTimes.
2015-10-13 09:30:14 +09:00
Shirou WAKAYAMA
6e3f81ce18
net[linux]: fix lsof output
2015-10-11 22:15:47 +09:00
Shirou WAKAYAMA
5ae4dcc8ba
net[linux]: fix lsof output in linux when no pid outputed.
2015-10-11 22:07:18 +09:00
Shirou WAKAYAMA
93e226a5e3
net[freebsd,linux,darwin]: merge unix like OSes.
2015-10-11 21:57:53 +09:00
Shirou WAKAYAMA
34195b4b58
net[darwin, linux]: get UDP information when inet or all specified.
2015-10-11 21:48:48 +09:00
Shirou WAKAYAMA
a95dde9672
cpu[darwin]: separetes cpu_darwin to cgo and nocgo to get CPUTimes.
2015-10-10 22:13:38 +09:00
Shirou WAKAYAMA
3303647209
host[linux]: fix utmp struct on arm.
2015-10-01 17:21:37 +09:00
shirou
82a76c01e3
Merge pull request #85 from andyjones/fix/created-time
...
CreateTime() on linux returning an incorrect timestamp
2015-09-29 11:43:03 +09:00
andy
cf5660bfd3
process[linux]: calculate the CreateTime and then convert to microseconds
2015-09-28 16:18:53 +01:00
shirou
0fd612ec7b
Merge pull request #83 from neezgee/master
...
Fix docker on Centos 7
2015-09-22 15:03:46 +09:00
shirou
b389cc66e3
Merge pull request #84 from influxdb/mem-new-kern
...
When MemAvailable is in /proc/meminfo, use it (kernel 3.14+)
2015-09-22 14:55:57 +09:00
Cameron Sparr
6cd8284b30
When MemAvailable is in /proc/meminfo, use it (kernel 3.14+)
2015-09-21 17:18:20 -07:00
Ruslan Islamgaliev
005b9b7f7d
Fix imports
2015-09-21 23:42:53 +03:00
Ruslan Islamgaliev
91bb4ddc07
Fix docker on Centos 7
2015-09-21 23:29:17 +03:00
shirou
c1313e7634
Merge pull request #82 from influxdb/darwin-mem
...
Use vm_stat command on darwin to get memory
2015-09-18 16:31:13 +09:00
Cameron Sparr
4bba3025ca
Use vm_stat command on darwin to get memory
...
This has the benefit of allowing us to also grab the cached memory so
that we can get an "available" measurement
2015-09-18 00:24:09 -07:00
WAKAYAMA shirou
be88485e9f
mem[freebsd]: fix virtual memory available and used.
2015-09-18 14:01:49 +09:00
shirou
1daf67e7ad
Merge pull request #81 from shirou/process/add_connections
...
process[linux, darwin]: implements Connections using lsof.
2015-09-18 13:41:46 +09:00
Shirou WAKAYAMA
b3cf7354f6
process[linux, darwin]: implements Connections using lsof.
2015-09-18 13:36:13 +09:00
shirou
a369a8857c
Merge pull request #79 from influxdb/disk-linux-32bit
...
Support 32-bit linux, this field is int32 on 32-bit systems
2015-09-18 08:05:45 +09:00
Cameron Sparr
389d17e8a0
Support 32-bit linux, this field is int32 on 32-bit systems
2015-09-17 15:04:16 -07:00
Shirou WAKAYAMA
9c0474c2a7
update README
2015-09-16 17:20:43 +09:00
shirou
918bd3f404
Merge pull request #77 from shirou/add_process_parent_darwin_linux
...
Add process/Parent, net/NetConnections on darwin and linux
2015-09-16 16:38:18 +09:00
Shirou WAKAYAMA
4d0f737301
net: because lsof failed on drone.io, skip TestNetConnections if CI.
2015-09-16 16:33:07 +09:00
Shirou WAKAYAMA
0062ae2bfa
use LookPath
2015-09-16 16:27:19 +09:00
Shirou WAKAYAMA
249a761b81
net[linux]: temporary enable error print.
2015-09-16 16:24:04 +09:00
Shirou WAKAYAMA
8d21be591e
net[linux]: implements NetConnections() using lsof.
2015-09-16 16:20:07 +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
eb7739a6a5
process: forget to add guard.
2015-09-16 12:10:39 +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
shirou
026d4a3519
Merge pull request #75 from jinto/jinto
...
Detect error in CPUTimes fails on callPs, and modify comments on ReadLines
2015-09-13 21:05:06 +09:00
jay park
2984accfa1
return error when CPUTimes fails on callPs, modify comments on ReadLines
2015-09-13 13:05:09 +09:00
Shirou WAKAYAMA
a00c5af817
process[linux]: return up-to-date information when invoked.
2015-09-11 15:54:10 +09:00
shirou
e10ccf9971
Merge pull request #74 from choplin/patch-2
...
Ensure that process.MemoryInfo returns a up-to-date value.
2015-09-11 14:22:35 +09:00