Lomanic
0314bc81f3
Use w32.EnumProcesses to get pids on Windows in process.Pids()
2017-11-12 03:08:47 +01:00
shirou
982c40e07b
Merge pull request #444 from tychoish/make-list-all-processes-public
...
make process.processes function public
2017-11-12 01:32:35 +09:00
shirou
40b2c667c5
Merge pull request #447 from shawnps/master
...
call Fatal if length of Users() is 0
2017-11-12 01:21:39 +09:00
shirou
5efab3f766
Merge pull request #450 from mpfz0r/fixtypo
...
fix typo
2017-11-10 07:34:52 +09:00
shirou
51809083eb
Merge pull request #449 from mpfz0r/connsupport
...
Implement Connection support for OpenBSD
2017-11-10 07:34:25 +09:00
Sam Kleinman
4d92a03da8
fix cross compiles
2017-11-09 10:31:12 -05:00
Marco Pfatschbacher
df6462b50e
Fix PR comments made by shirou
2017-11-09 13:14:12 +01:00
shirou
09135c072b
Merge pull request #448 from mpfz0r/master
...
Fix IOCounters for OpenBSD
2017-11-09 14:52:09 +09:00
Marco Pfatschbacher
5476f100bc
mark net_connections as supported for OpenBSD
2017-11-08 21:41:57 +01:00
Marco Pfatschbacher
1ca44eace9
fix typo
2017-11-08 21:38:07 +01:00
Marco Pfatschbacher
6e7aca41d7
Implement Connection support for OpenBSD
...
This retrieves open TCP/UDP connections by using netstat(1)
File descriptors and pids are not supported.
2017-11-08 21:26:05 +01:00
Marco Pfatschbacher
d62768abc9
Fix IOCounters for OpenBSD
...
Use SysctlRaw instead of Sysctl.
The latter assumes NUL terminated strings
which returns the lenght off by one.
Therefore, only n-1 disks where reported.
2017-11-08 20:52:36 +01:00
shawnps
befc2c3d92
call Fatal if length of Users() is 0
2017-11-08 13:29:49 +09:00
tycho garen
08a382b207
make process.processes function public
2017-11-05 20:40:33 -05:00
shirou
48fc561289
add HOST_VAR to README
2017-10-19 00:04:09 +09:00
shirou
232ceb4667
update README.
2017-10-19 00:02:22 +09:00
shirou
a0823a75b1
Merge pull request #438 from mlkm/processtimes-win
...
Implement Process.Times for Windows
2017-10-18 23:59:27 +09:00
shirou
4f3240425b
Merge pull request #439 from danielnelson/add-host-var-envvar
...
Add HOST_VAR envvar and use to locate utmp on Linux.
2017-10-17 07:48:22 +09:00
Daniel Nelson
df2f1a8dd1
Add HOST_VAR envvar and use to locate utmp on Linux.
2017-10-16 14:53:14 -07:00
mlkm
b9ab45bcdd
Implement Process.Times for Windows
2017-10-13 16:17:51 +02:00
shirou
f23a6bd2fa
Merge pull request #436 from john-m-liu/patch-1
...
Improve performance of finding child processes on Windows
2017-10-12 21:48:05 +09:00
shirou
8f7dc4e5a1
Merge pull request #432 from stevenh/raw-sysctl
...
Eliminate use of sysctl command on FreeBSD
2017-10-08 20:41:15 +09:00
shirou
e01a14e318
[net] linux: skip if permission error on getProcInodesAll
...
This fixes #433
2017-10-07 11:42:26 +09:00
John Liu
d28c254aaf
Improve performance of finding child processes on Windows
2017-10-06 12:23:54 -04:00
Steven Hartland
6450c60b61
Eliminate use of sysctl command on FreeBSD
...
In order to improve performance and help prevent crashes due to the outstanding fork crash bug:
https://github.com/golang/go/issues/15658
Replace string parsed values from the sysctl command with native reads of sysctl values using unix.SysctlRaw and unix.SysctlUint32.
This also merges OpenBSD and FreeBSD load implementations which are identical.
2017-10-05 08:45:56 +01:00
shirou
a6cc94f428
update README about thread and cmdline.
2017-10-05 10:42:53 +09:00
shirou
fa0e9fd921
Merge pull request #428 from Leonid99/threads
...
Implement Threads() in Linux
2017-10-05 08:03:32 +09:00
shirou
1873a1fd4f
Merge pull request #431 from Leonid99/whitespace
...
process.go: reformat whitespaces to keep gofmt happy
2017-10-05 08:03:01 +09:00
Leonid Podolny
4269f19b1b
process.go: reformat whitespaces to keep gofmt happy
2017-10-04 15:46:49 -04:00
Leonid Podolny
7ee4a4c6ff
Fix Threads() signature to better match python original
2017-10-04 15:38:01 -04:00
Leonid Podolny
7ad3836ad3
Implement Threads() for Linux
2017-10-04 15:38:01 -04:00
WAKAYAMA shirou
1ba77cdb3d
[load] freebsd: change to use x/sys/unix.SysctlRaw.
...
This implementation is borrowed from NodeExporter.
https://github.com/prometheus/node_exporter/blob/master/collector/loadavg_freebsd.go
2017-10-04 22:34:47 +09:00
shirou
fcba942e03
Merge pull request #426 from disq/cpu-NaN-fix
...
Fix NaN percentage if process was created too soon
2017-10-04 21:47:34 +09:00
Kemal Hadimli
826e63acbc
Never divide by zero
2017-09-28 15:54:06 +03:00
Kemal Hadimli
a3144a6850
Remove parens
2017-09-28 14:43:04 +03:00
Kemal Hadimli
696e1e0123
Fix NaN percentage if process was created too soon
2017-09-28 14:34:12 +03:00
shirou
6e221c4826
Merge pull request #423 from derekwbrown/db/windows_swap_memory
...
Add implementation of SwapMemory() for windows
2017-09-24 15:54:40 +09:00
WAKAYAMA Shirou
4c9fd1f200
[cpu]linux: add testcode with testdata.
2017-09-20 15:58:30 +09:00
Derek Brown
7c807c86e4
Add implementation of SwapMemory() for windows
2017-09-18 18:14:29 -07:00
shirou
084e5f47b4
Merge pull request #421 from sypher7/patch-1
...
Update README / required go version
2017-09-13 08:06:34 +09:00
Daniel Lynn
e5a4a82a13
Update README / required go version
...
Adding the `context` package import in 3834908232
bumps the required go version to 1.7.
2017-09-12 17:30:11 -05:00
shirou
a452de7c73
Merge pull request #346 from phemmer/rlimit-current
...
add current values to rlimit retrieval
2017-08-31 11:58:10 +09:00
shirou
2a3465ebd9
Merge pull request #419 from hnw/add-type-definitons-mips
...
Add type definitions for mips and mipsle
2017-08-27 21:58:55 +09:00
Yoshio HANAWA
a889bcce1a
Add type definitions for mips and mipsle
2017-08-27 02:36:33 +09:00
shirou
1c211f0807
Merge pull request #417 from schmichael/remove-setenv
...
Alter subprocess's environment instead of the hosts
2017-08-17 12:45:37 +09:00
Michael Schurter
042305ee4a
Remove SetEnv on all platforms
2017-08-16 15:32:21 -07:00
Michael Schurter
565f5c8c5e
Alter subprocess's environment instead of the hosts
...
Fixes #415
2017-08-16 14:54:50 -07:00
Shirou WAKAYAMA
3aa2ffab12
[process] linux: fix NumFD type inconversion.
2017-08-04 03:09:34 +00:00
shirou
ce4a32091a
Merge pull request #412 from DataDog/conor/faster-numfds
...
Just look at filenames for linux NumFDs call
2017-08-04 09:39:23 +09:00
WAKAYAMA Shirou
114c78c777
[host]: add not implemented methods.
2017-08-03 11:08:35 +09:00