Commit Graph

1263 Commits (d110536e109dd46d3d485635d04bc2bca19f5ee6)
 

Author SHA1 Message Date
shirou d76e8c18d8
Merge pull request #496 from shirou/add_docker_to_use_btime
[host] linux: use uptime even if docker guest.
shirou dd850b1aa1
Merge pull request #498 from stevenh/host-freebsd
Eliminate call to uname on FreeBSD
shirou 6ce2ace794
Merge pull request #497 from stevenh/freebsd-mem
Eliminate call to swapinfo on FreeBSD
Steven Hartland f846eda923 Eliminate call to uname on FreeBSD
Improve performance by eliminating the fork out to uname on FreeBSD which also helps prevent crashes / hangs due to the outstanding fork crash bug:
golang/go#15658

Also added a test for PlatformInformation.
Steven Hartland d968f63e51 Eliminate call to swapinfo on FreeBSD
Improve performance by eliminating the fork out to swapinfo on FreeBSD which also helps prevent crashes / hangs due to the outstanding fork crash bug:
golang/go#15658

This also fixes the value reported by SwapMemory and SwapMemoryWithContext on FreeBSD which previously only included the first swap device and also reported the values in terms of 1K blocks instead of bytes.
shirou 28f7cb0d63 [host] linux: use uptime even if docker guest.
shirou 5776ff9c7c
Merge pull request #494 from schmichael/patch-1
typo: wich -> which
Michael Schurter b11d0a7942
typo: wich -> which
shirou 12ab94e804
Merge pull request #493 from maihde/issue-492
Resolve issue #492 to reduce CPU overhead associated with fillFromStat
Ihde 44ef466a5a Resolve issue #492 to reduce CPU overhead associated with fillFromStat
shirou 543a05cce0 fix psutil URL.
shirou 32a44bdc39
Merge pull request #488 from sadag/master
windows: fix WithContext functions
shirou 9a74b6fe2e [cpu]windows: fix retrun value.
shirou 234a591899
Merge pull request #487 from truthbk/fix-win-race
[host] fix race condition to ret
sada 8dd42707e2 windows: fix WithContext functions
set timeout only if parent context doesn't set.
Jaime Fullaondo 178e5ce997 [host] fix race condition to ret
shirou c432be29cc
Merge pull request #485 from cshunger/linux-temperature
Linux temperature
CHEVY S. HUNGERFORD 29f8dfa1ad fixing SensorKey output
CHEVY S. HUNGERFORD 1c4fa5628c giving temperature more verbose output
shirou 4ac6b5b4d3 Revert "Merge pull request #470 from improbable-io/bug-darwin-build-2"
This reverts commit bb09b4e7d9, reversing
changes made to 6a368fb7cd.
shirou bb09b4e7d9
Merge pull request #470 from improbable-io/bug-darwin-build-2
Fix build with bazel on OSX attempt 2 (add stub for host_cgo.go)
Tatiana Borisova 945c2f41de Fix host_cgo file
Tatiana Borisova a271cb7c1c Fix package name in host_cgo.go
shirou 6a368fb7cd [process]: add ProcessesWithContext.
shirou 079e1cb22f [internal]Windows: skip Host test.
shirou 2ae56c34ce
Merge pull request #480 from shirou/feature/add_context_support
Add WithContext functions.
shirou e776f6384a [docker]: fix typo.
shirou a97abd3450
Merge branch 'master' into feature/add_context_support
shirou d1fb05a30b Skip some test if CircleCI.
shirou 1958326a49 [docker]: fix re-declartion
shirou cd61c36c4f
Merge branch 'master' into feature/add_context_support
shirou 12199ad2d7
Merge pull request #481 from shirou/feature/use_basename_for_iocounters
[disk]linux: use basename such as sda1 for IOCounters
shirou e6205aaa77
Merge pull request #441 from shirou/feature/lxd_boot_time
[host] linux: change file if in a lxc container.
shirou 8b2468f1e7 Merge branch 'master' of github.com:shirou/gopsutil into feature/lxd_boot_time
shirou 231815dfea [docker]: move String() to docker.go for all platforms.
shirou 49e4d328f8
Merge pull request #471 from nkirsch/tgid_support
Add support for parsing the tgid (thread group id) field.
Nick Kirsch fb24c70d36 Add ErrNotImplementedError for Tgid support.
Nick Kirsch 6c35887d02 Add ErrNotImplementedError to Darwin, FreeBSD, and OpenBSD.
Nick Kirsch 482ca3af6d Parses the tgid field, which is the thread group id (aka user-space process id) on Linux. Returns error on other platforms.
shirou 756e91c8f5 [disk]linux: use basename such as sda1 for IOCounters
shirou 4c73494c78 Add WithContext functions.
Olivier Vielpeau 5b52fbbea5 [mem] Add commit-related stats to VirtualMemoryStat on Linux
Lomanic 7ec06ec280
Merge pull request #475 from Oxileo/issue442
Fix #442, trim sensor names and properly handle CentOS in host.SensorsTemperatures()
Lomanic e3ae39aa5b Fix #442, trim sensor names and properly handle CentOS in host.SensorsTemperatures()
Tatiana Borisova 1be443f398 Fix build attempt 3 (add stub for host_cgo.go)
shirou 27389f01ec
Merge pull request #459 from shirou/feature/implements_process_kill_on_windows
[process]windows: implements process.Kill using os/exec
shirou b8c456e534 Revert "Fix build with bazel on OSX"
This reverts commit 51c7c4013b.
shirou ab3d3b7f21
Merge pull request #467 from improbable-io/bugfix-darwin-build
Fix build with bazel on OSX
Tatiana Borisova 51c7c4013b Fix build with bazel on OSX
shirou 5c46042e0d
Merge pull request #461 from medzin/time-stat-doc
Add missing doc for cpu.TimesStat structure