Commit Graph

1853 Commits (4dcbf38c38a5a97613edb17b789e7fa9d2de80e5)
 

Author SHA1 Message Date
Michael Schurter 565f5c8c5e Alter subprocess's environment instead of the hosts
Fixes #415
Shirou WAKAYAMA 3aa2ffab12 [process] linux: fix NumFD type inconversion.
shirou ce4a32091a Merge pull request #412 from DataDog/conor/faster-numfds
Just look at filenames for linux NumFDs call
WAKAYAMA Shirou 114c78c777 [host]: add not implemented methods.
WAKAYAMA Shirou 9c5b318e0d [host] windows: define Virtualization()
Conor Branagan 7b058c7436 Just look at filenames for linux NumFDs call.
In NumFDs we don't care about the contents of the fields, just how many
there are.
shirou d97b1c368a Merge pull request #408 from sean-/solaris_zone_host_id
Add HostID support to the `solaris` build target.
Sean Chittenden 42a72cbfae
Add HostID support to the `solaris` build target.
shirou 42b5d5abb2 Merge pull request #406 from jen20/fix-osx-build
disk: Remove -mmacosx-version-min from darwin+cgo
James Nugent 95e4816cce disk: Remove -mmacosx-version-min from darwin+cgo
The presence of the -mmacosx-version-min flag in disk_darwin_cgo.go
makes it impossible to build the other cgo components on modern Mac OS X
(10.12), since the object files with which they must link are not built
with that flag. Errors present from Go Tip (1.9, effectively) in the
form:

ld: warning: object file (whatever.o) was built for newer OSX version
(10.12) than being linked (10.10)

This commit removes the minimum version flag, instead targeting the
version of OS X on which a binary is compiled as the minimum. Without
this, I believe (though have not verified it actually works) that the
only way to build without without warnings/undefined behaviour if the OS
X 10.10 headers and objects are installed and configured correctly.
WAKAYAMA Shirou 906b00fc23 add features to README. Thank you for all of great contributors!
shirou f6b70e303c Merge pull request #387 from tychoish/windows-data-collection
collect more data on windows
WAKAYAMA Shirou 5329f8ba79 [process] fix Document of CreatTime seconds -> milliseconds
shirou 1da5000996 Merge pull request #402 from chrisroberts/fix-exe-macos
Fix process.Exe() on macOS 10.12
shirou 33f117e433 Merge pull request #405 from Aditya267/cpu_percent
added function for calculation of CPU usage percentage of a process
Aditya Choudhary (c) 533161c2ed added funtion for calculation of CPU usage percentage of a process
shirou f8e4e2ca16 Merge pull request #403 from HeChuanXUPT/patch-2
set win cpu total name to "cpu-total"
HeChuan c818f7b647 set win cpu total name to "cpu-total"
set the name of windows cpu total percent to "cpu-total"
keep the same with Linux, Freebsd system
Chris Roberts 9c998f664a Fix process.Exe() on macOS 10.12
The `lsof` command on macOS < 10.12 always selects the `p` field
when using the `-F` option. On macOS 10.12 the `f` field is also
always selected causing an incorrect result. This modification adds
both options which are always selected to maintain consistency.
WAKAYAMA Shirou 66b0ca3121 [disk] Add comment to disk.Usage().
WAKAYAMA Shirou 09e9859714 [net]linux: return err.
shirou 53dcbf48b4 Merge pull request #395 from better88/patch-1
err omit in getProcInodes
better88 86af477d1a err omit in getProcInodes
shirou ae1481820a Merge pull request #392 from derekwbrown/add_username
[windows] add implementation for process.Username()
Derek Brown a3ae2ed411 Add domain to username (rather than naked username)
tycho garen d522bf5b7e collect more data on windows
shirou aa0a3bce9d Merge pull request #382 from acd/master
Only read /proc/stat once when cpu.Times(true) is called on Linux
Derek Brown 5157f03748 [windows] add implementation for process.Username()
Andrew Danforth 484470889f Only read /proc/stat once when cpu.Times(true) is called on Linux
shirou 3dd8bd46d9 Merge pull request #376 from ContinuumLLC/win_percpu_feature
Windows: Read processor performance metrics overall, per cpu and per core
Rajkumar Gupta b657e83fed Added comments for structs and functions
Rajkumar Gupta 2d2db4203f Change to adapt current cpu.Times API for per cpu and core time stats
shirou 60a0ef9c82 Merge pull request #380 from sean-/retire-syscall
Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}`
Sean Chittenden cb12fba4f4
windows.Syscall doesn't exist: use syscall.Syscall()
Sean Chittenden 3e79194fe2
windows.EINVAL doesn't exist, only syscall.EINVAL.
Sean Chittenden 635b971c0e
Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}`
shirou e30b7839cd Merge pull request #379 from magiconair/fix-host-boottime-race
Fix data race in host.BootTime
Patrick Hemmer 60c32eb847 add current values to rlimit retrieval
Frank Schroeder a9e803ef6a
Fix data race in host.BootTime
Rajkumar Gupta ea683cd370 Read processor performance metrics per cpu and per core
shirou 3e0b91b57e Merge pull request #375 from astj/linux-reduce-lstat-syscalls
Reduce unnecessary syscalls on common.NumProcs() in Linux
Asato Wakisaka 16a38100b3 NumProcs() just counts files under f, so use f.Readdirnames to avoid `lstat` syscall inside f.Readdir.
shirou fd7db8b441 Merge pull request #372 from tmm1/linux-proc-mounts
Read disk partitions on linux from /proc/mounts instead of /etc/mtab
Aman Gupta a08587b348 Update disk_linux.go
Aman Gupta e346d3829a remove obsolete comment
Aman Gupta 5e1770d1f2 read disk partitions on linux from /proc/mounts intead of /etc/mtab
WAKAYAMA shirou b6da2bd76e [freebsd] cpu: fix CPUInfo on 10.3R
Related: #307
shirou 37c114fe6c Merge pull request #366 from tmm1/patch-2
Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes
shirou 19b101bb53 Merge pull request #365 from tmm1/patch-1
Include "DRIVE_REMOTE" volumes on windows
Aman Gupta f2cbbac707 Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes