Commit Graph

1073 Commits (a1564d2e89f64e9c149ade5d30740ffee20ea24a)
 

Author SHA1 Message Date
shirou 4c73494c78 Add WithContext functions. 7 years ago
Olivier Vielpeau 5b52fbbea5 [mem] Add commit-related stats to VirtualMemoryStat on Linux 7 years ago
Lomanic 7ec06ec280
Merge pull request #475 from Oxileo/issue442
Fix #442, trim sensor names and properly handle CentOS in host.SensorsTemperatures()
7 years ago
Lomanic e3ae39aa5b Fix #442, trim sensor names and properly handle CentOS in host.SensorsTemperatures() 7 years ago
Tatiana Borisova 1be443f398 Fix build attempt 3 (add stub for host_cgo.go) 7 years ago
shirou 27389f01ec
Merge pull request #459 from shirou/feature/implements_process_kill_on_windows
[process]windows: implements process.Kill using os/exec
7 years ago
shirou b8c456e534 Revert "Fix build with bazel on OSX"
This reverts commit 51c7c4013b.
7 years ago
shirou ab3d3b7f21
Merge pull request #467 from improbable-io/bugfix-darwin-build
Fix build with bazel on OSX
7 years ago
Tatiana Borisova 51c7c4013b Fix build with bazel on OSX 7 years ago
shirou 5c46042e0d
Merge pull request #461 from medzin/time-stat-doc
Add missing doc for cpu.TimesStat structure
7 years ago
Adam Medzinski 22f3299fd7
Add missing doc for cpu.TimesStat structure 7 years ago
shirou bfe3c2e8f4
Merge pull request #452 from leafnunes/master
prevent hang on pkg import if wmi.Query hangs
7 years ago
leaf 65598d98cc To prevent hang if wmi.Query hangs, add a context-aware wrapper for it. 7 years ago
WAKAYAMA shirou f5e19d7e16 [process]windows: implements process.Kill using os/exec 7 years ago
shirou 384a55110a
Merge pull request #458 from danielnelson/skip-not-exist
[net] linux: skip if not exist error on getProcInodesAll
7 years ago
shirou f7e6fc5972
Merge pull request #456 from Lomanic/windows-snapprocess
Use getFromSnapProcess to get process Name and Ppid on Windows instead of slow WMI
7 years ago
Daniel Nelson 6abd227e48
[net] linux: skip if not exist error on getProcInodesAll 7 years ago
shirou 234b6bc9b8
Merge pull request #455 from Lomanic/windows-enumprocesses
Use w32.EnumerateProcesses instead of slower wmi in windows process.Processes()
7 years ago
Lomanic 00bdebfce7 Use getFromSnapProcess to get process Name and Ppid on Windows instead of slow WMI 7 years ago
Lomanic da12f10f63 Use w32.EnumerateProcesses instead of slower wmi in windows process.Processes() 7 years ago
shirou a8bc262994
Merge pull request #454 from Lomanic/windows-enumprocesses
Handle case in Windows process.Pids() where buffer is too small to handle that many processes returned by w32.EnumProcesses
7 years ago
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
shirou 699bd0f65a
Merge pull request #453 from Lomanic/windows-enumprocesses
Use w32.EnumProcesses to get pids on Windows in process.Pids()
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 dc3a09c1d0 [host] linux: change file if in a lxc container. 8 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