1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-10 19:29:14 +08:00

1073 Commits

Author SHA1 Message Date
shirou
a1564d2e89
Merge pull request #478 from DataDog/olivielpeau/commit-vm-stats
[mem] Add commit-related stats to VirtualMemoryStat on Linux
2018-03-28 10:49:09 +09:00
shirou
1fc354628c
Merge pull request #503 from cshunger/patch-1
Fix float64 casting
2018-03-28 10:32:54 +09:00
Chevy
699deed6c6
Fix float64 casting 2018-03-26 12:16:33 -05:00
shirou
b99342a9ce [host] fallback: implement PlatformInformation() 2018-03-24 15:57:29 +09:00
shirou
26a4a2f995 [process]: move ErrorNoChildren to platform independent. 2018-03-24 15:56:32 +09:00
shirou
ebe614f6e1 [solaris] host: add PlatformInformation() which is missing. 2018-03-22 00:28:00 +09:00
shirou
12394ccbca
Merge pull request #502 from lclarkmichalek/master
Use static initialisation for invoke instances, instead of init funcs
2018-03-22 00:18:12 +09:00
Laurie Clark-Michalek
413cb32b6c Use static initialisation for invoke instances, instead of init funcs
The order of init function execution is dependant on the order that the
source files are passed to the compiler. This causes issues when
building under other build systems, such as bazel or buck, as they are
not guarenteed to maintain the same file order as the default go tool.
2018-03-21 14:08:39 +00:00
shirou
6b5767f15e
Merge pull request #501 from HeChuanXUPT/fix_docker_uptime
fix docker uptime
2018-03-13 16:06:27 +09:00
linuxhe
ee5d6a3d8f fix docker uptime 2018-03-13 14:46:16 +08:00
shirou
d76e8c18d8
Merge pull request #496 from shirou/add_docker_to_use_btime
[host] linux: use uptime even if docker guest.
2018-03-12 21:39:33 +09:00
shirou
dd850b1aa1
Merge pull request #498 from stevenh/host-freebsd
Eliminate call to uname on FreeBSD
2018-03-12 21:39:13 +09:00
shirou
6ce2ace794
Merge pull request #497 from stevenh/freebsd-mem
Eliminate call to swapinfo on FreeBSD
2018-03-12 21:36:39 +09:00
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.
2018-03-11 23:08:04 +00:00
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.
2018-03-11 22:15:22 +00:00
shirou
28f7cb0d63 [host] linux: use uptime even if docker guest. 2018-03-11 13:22:13 +09:00
shirou
5776ff9c7c
Merge pull request #494 from schmichael/patch-1
typo: wich -> which
v2.18.02
2018-02-28 07:58:47 +09:00
Michael Schurter
b11d0a7942
typo: wich -> which 2018-02-27 11:27:49 -08:00
shirou
12ab94e804
Merge pull request #493 from maihde/issue-492
Resolve issue #492 to reduce CPU overhead associated with fillFromStat
2018-02-21 16:26:18 +09:00
Ihde
44ef466a5a Resolve issue #492 to reduce CPU overhead associated with fillFromStat 2018-02-20 13:13:53 -05:00
shirou
543a05cce0 fix psutil URL. 2018-02-20 16:00:26 +09:00
shirou
32a44bdc39
Merge pull request #488 from sadag/master
windows: fix WithContext functions
2018-02-14 21:00:39 +09:00
shirou
9a74b6fe2e [cpu]windows: fix retrun value. 2018-02-13 22:21:27 +09:00
shirou
234a591899
Merge pull request #487 from truthbk/fix-win-race
[host] fix race condition to ret
2018-02-13 21:58:11 +09:00
sada
8dd42707e2 windows: fix WithContext functions
set timeout only if parent context doesn't set.
2018-02-12 13:26:17 -08:00
Jaime Fullaondo
178e5ce997 [host] fix race condition to ret 2018-02-12 15:46:11 +01:00
shirou
c432be29cc
Merge pull request #485 from cshunger/linux-temperature
Linux temperature
v2.18.01
2018-01-30 10:13:38 +09:00
CHEVY S. HUNGERFORD
29f8dfa1ad fixing SensorKey output 2018-01-27 10:11:51 -06:00
CHEVY S. HUNGERFORD
1c4fa5628c giving temperature more verbose output 2018-01-26 20:40:34 -06:00
shirou
4ac6b5b4d3 Revert "Merge pull request #470 from improbable-io/bug-darwin-build-2"
This reverts commit bb09b4e7d97d450a7836ae174cf812bbdbfe5e9d, reversing
changes made to 6a368fb7cd1221fa6ea90facc9447c9a2234c255.
2018-01-27 00:58:16 +09:00
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)
2018-01-27 00:53:26 +09:00
Tatiana Borisova
945c2f41de Fix host_cgo file 2018-01-25 18:25:11 +00:00
Tatiana Borisova
a271cb7c1c Fix package name in host_cgo.go 2018-01-25 17:39:00 +00:00
shirou
6a368fb7cd [process]: add ProcessesWithContext. 2018-01-11 11:47:13 +09:00
shirou
079e1cb22f [internal]Windows: skip Host test. 2018-01-11 11:34:14 +09:00
shirou
2ae56c34ce
Merge pull request #480 from shirou/feature/add_context_support
Add WithContext functions.
2018-01-09 11:50:27 +09:00
shirou
e776f6384a [docker]: fix typo. 2018-01-09 11:44:33 +09:00
shirou
a97abd3450
Merge branch 'master' into feature/add_context_support 2018-01-09 11:34:48 +09:00
shirou
d1fb05a30b Skip some test if CircleCI. 2018-01-09 11:30:38 +09:00
shirou
1958326a49 [docker]: fix re-declartion 2018-01-09 11:21:13 +09:00
shirou
cd61c36c4f
Merge branch 'master' into feature/add_context_support 2018-01-09 11:18:25 +09:00
shirou
12199ad2d7
Merge pull request #481 from shirou/feature/use_basename_for_iocounters
[disk]linux: use basename such as sda1 for IOCounters
2018-01-09 11:17:27 +09:00
shirou
e6205aaa77
Merge pull request #441 from shirou/feature/lxd_boot_time
[host] linux: change file if in a lxc container.
2018-01-09 11:16:55 +09:00
shirou
8b2468f1e7 Merge branch 'master' of github.com:shirou/gopsutil into feature/lxd_boot_time 2018-01-09 11:16:18 +09:00
shirou
231815dfea [docker]: move String() to docker.go for all platforms. 2018-01-09 11:12:00 +09:00
shirou
49e4d328f8
Merge pull request #471 from nkirsch/tgid_support
Add support for parsing the tgid (thread group id) field.
2018-01-09 11:09:00 +09:00
Nick Kirsch
fb24c70d36 Add ErrNotImplementedError for Tgid support. 2018-01-05 11:37:36 -08:00
Nick Kirsch
6c35887d02 Add ErrNotImplementedError to Darwin, FreeBSD, and OpenBSD. 2018-01-04 11:51:49 -08:00
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. 2018-01-04 11:30:39 -08:00
shirou
756e91c8f5 [disk]linux: use basename such as sda1 for IOCounters 2017-12-31 17:15:45 +09:00