Commit Graph

1000 Commits (c9a24cf2d02ba46a400718a3bed60606df8b54b6)
 

Author SHA1 Message Date
Lomanic c9a24cf2d0 Handle case in Windows process.Pids() where buffer is too small to handle that many processes returned by w32.EnumProcesses 7 years ago
Lomanic 0314bc81f3 Use w32.EnumProcesses to get pids on Windows in process.Pids() 7 years ago
shirou 982c40e07b
Merge pull request #444 from tychoish/make-list-all-processes-public
make process.processes function public
7 years ago
shirou 40b2c667c5
Merge pull request #447 from shawnps/master
call Fatal if length of Users() is 0
7 years ago
shirou 5efab3f766
Merge pull request #450 from mpfz0r/fixtypo
fix typo
7 years ago
shirou 51809083eb
Merge pull request #449 from mpfz0r/connsupport
Implement Connection support for OpenBSD
7 years ago
Sam Kleinman 4d92a03da8 fix cross compiles 7 years ago
Marco Pfatschbacher df6462b50e Fix PR comments made by shirou 7 years ago
shirou 09135c072b
Merge pull request #448 from mpfz0r/master
Fix IOCounters for OpenBSD
7 years ago
Marco Pfatschbacher 5476f100bc mark net_connections as supported for OpenBSD 7 years ago
Marco Pfatschbacher 1ca44eace9 fix typo 7 years ago
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.
7 years ago
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.
7 years ago
shawnps befc2c3d92 call Fatal if length of Users() is 0 7 years ago
tycho garen 08a382b207 make process.processes function public 7 years ago
shirou 48fc561289 add HOST_VAR to README 8 years ago
shirou 232ceb4667 update README. 8 years ago
shirou a0823a75b1 Merge pull request #438 from mlkm/processtimes-win
Implement Process.Times for Windows
8 years ago
shirou 4f3240425b Merge pull request #439 from danielnelson/add-host-var-envvar
Add HOST_VAR envvar and use to locate utmp on Linux.
8 years ago
Daniel Nelson df2f1a8dd1
Add HOST_VAR envvar and use to locate utmp on Linux. 8 years ago
mlkm b9ab45bcdd Implement Process.Times for Windows 8 years ago
shirou f23a6bd2fa Merge pull request #436 from john-m-liu/patch-1
Improve performance of finding child processes on Windows
8 years ago
shirou 8f7dc4e5a1 Merge pull request #432 from stevenh/raw-sysctl
Eliminate use of sysctl command on FreeBSD
8 years ago
shirou e01a14e318 [net] linux: skip if permission error on getProcInodesAll
This fixes #433
8 years ago
John Liu d28c254aaf Improve performance of finding child processes on Windows 8 years ago
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.
8 years ago
shirou a6cc94f428 update README about thread and cmdline. 8 years ago
shirou fa0e9fd921 Merge pull request #428 from Leonid99/threads
Implement Threads() in Linux
8 years ago
shirou 1873a1fd4f Merge pull request #431 from Leonid99/whitespace
process.go: reformat whitespaces to keep gofmt happy
8 years ago
Leonid Podolny 4269f19b1b process.go: reformat whitespaces to keep gofmt happy 8 years ago
Leonid Podolny 7ee4a4c6ff Fix Threads() signature to better match python original 8 years ago
Leonid Podolny 7ad3836ad3 Implement Threads() for Linux 8 years ago
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
8 years ago
shirou fcba942e03 Merge pull request #426 from disq/cpu-NaN-fix
Fix NaN percentage if process was created too soon
8 years ago
Kemal Hadimli 826e63acbc Never divide by zero 8 years ago
Kemal Hadimli a3144a6850 Remove parens 8 years ago
Kemal Hadimli 696e1e0123 Fix NaN percentage if process was created too soon 8 years ago
shirou 6e221c4826 Merge pull request #423 from derekwbrown/db/windows_swap_memory
Add implementation of SwapMemory() for windows
8 years ago
WAKAYAMA Shirou 4c9fd1f200 [cpu]linux: add testcode with testdata. 8 years ago
Derek Brown 7c807c86e4 Add implementation of SwapMemory() for windows 8 years ago
shirou 084e5f47b4 Merge pull request #421 from sypher7/patch-1
Update README / required go version
8 years ago
Daniel Lynn e5a4a82a13 Update README / required go version
Adding the `context` package import in 3834908232 bumps the required go version to 1.7.
8 years ago
shirou a452de7c73 Merge pull request #346 from phemmer/rlimit-current
add current values to rlimit retrieval
8 years ago
shirou 2a3465ebd9 Merge pull request #419 from hnw/add-type-definitons-mips
Add type definitions for mips and mipsle
8 years ago
Yoshio HANAWA a889bcce1a Add type definitions for mips and mipsle 8 years ago
shirou 1c211f0807 Merge pull request #417 from schmichael/remove-setenv
Alter subprocess's environment instead of the hosts
8 years ago
Michael Schurter 042305ee4a Remove SetEnv on all platforms 8 years ago
Michael Schurter 565f5c8c5e Alter subprocess's environment instead of the hosts
Fixes #415
8 years ago
Shirou WAKAYAMA 3aa2ffab12 [process] linux: fix NumFD type inconversion. 8 years ago
shirou ce4a32091a Merge pull request #412 from DataDog/conor/faster-numfds
Just look at filenames for linux NumFDs call
8 years ago