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

1703 Commits

Author SHA1 Message Date
shirou
a5a07ae83c [process][linux] apply #1033 to v3. 2021-03-01 20:23:37 +09:00
shirou
a5834f48c4
Merge pull request #1033 from eriknordmark/erik-reduce-memory
Avoid returning slice into buffer from Readfile
2021-02-26 23:12:05 +09:00
shirou
a44e7585f9
Merge pull request #1030 from pawelz/master
Clarify the godoc of the Children function.
2021-02-20 23:01:48 +09:00
shirou
a346c31dc3
Merge pull request #1036 from tklauser/drop-getconf
cpu, v3/cpu: use sysconf package instead of exec'ing getconf
2021-02-20 23:00:25 +09:00
Tobias Klauser
ee12f66e4d cpu, v3/cpu: use sysconf package instead of exec'ing getconf
Currently, ClocksPerSec is determined by exec'ing getconf in func init,
i.e. on startup of every program importing the package. getconf might
not be present on some systems or is not executable by the current user.
To avoid this hard to control dependency, use the
github.com/tklauser/go-sysconf package which implements sysconf(3)
entirely in Go without cgo. The package is supported on all platforms
currently supported by the cpu and v3/cpu package of gopsutil.
2021-02-19 12:20:10 +01:00
eriknordmark
0e13743b77 Avoid returning slice into buffer from Readfile
Signed-off-by: eriknordmark <erik@zededa.com>
2021-02-08 19:21:22 +01:00
shirou
3585d276bc
Merge pull request #1032 from shirou/remove_smc_files
[v3][cpu] remove accidentally added GPL files.
2021-02-08 20:14:27 +09:00
shirou
6d324b0586 [v3][cpu] remove accidentally added GPL files. 2021-02-08 20:08:50 +09:00
shirou
d765dfc473
Merge pull request #1027 from it-novum/fixwindowscounter
Fixes #1026 windows counters on non english systems
2021-02-06 21:21:39 +09:00
Johannes Drummer
76fb312c4b delete unused PdhAddCounterW 2021-02-06 13:11:41 +01:00
Johannes Drummer
7f11ad65d9 Merge branch 'master' into fixwindowscounter 2021-02-06 11:02:11 +01:00
Johannes Drummer
82b235c9f5 v2 windows counters on non english systems 2021-02-06 11:01:29 +01:00
Paweł Zuzelski
17c03b3b2d Clarify the godoc of the Children function.
The previous godoc string was slightly confusing and only described information that can be deduced from the function signature.
2021-02-04 18:03:52 +01:00
Johannes Drummer
6e7f4ffe99 Fix windows counters on non english systems 2021-02-01 10:32:53 +01:00
shirou
a9a6146c93 [process] fix MemoryInfo comment. remove Swap
fixes #1012
v3.21.1
2021-01-14 19:00:55 +09:00
shirou
be483f0a78
Merge pull request #1017 from rishabh-arya95/hotfix/smap-parser
[process][linux] Fixing smaps parser
2021-01-14 18:46:38 +09:00
Lomanic
8fd13bfa55
Merge pull request #1019 from MashaSamoylova/unix-udp4-fix
Fix lsof args for udp4 in unix
2021-01-11 20:29:18 +01:00
MashaSamoylova
7631bb0e5e Fix lsof args for udp4 in unix 2021-01-11 17:08:18 +07:00
Rishabh Arya
5b1d8ecae7 fix smap parser 2021-01-03 21:06:54 +05:30
shirou
afe0c04c5d
Merge pull request #1008 from imsodin/patch-1
use rest syntax not markdown
v3.20.12
2020-12-10 22:46:52 +09:00
Simon Frei
72d4813f24
use rest syntax not markdown 2020-12-10 14:12:43 +01:00
Lomanic
ebd8102702
Merge pull request #897 from james-bebbington/load-processes-created 2020-12-02 01:17:29 +01:00
Lomanic
94e574749b
Merge pull request #995 from Lomanic/fix-mktypessh-v3 2020-12-02 00:00:57 +01:00
Lomanic
a6ed12aa0e
Merge pull request #998 from shirou/feature/implement_load_windows_v3
[v3][load][windows] implement load.Avg on windows
2020-12-01 23:58:24 +01:00
shirou
478eb4c76a
Merge pull request #1004 from Lomanic/issue1002
[mem][linux] Fix #1002 only try to parse /proc/meminfo numeric values on fields we're interested in
v3.20.11
2020-11-30 22:16:23 +09:00
Lomanic
cd25417bd7 [mem][linux] Fix #1002 only try to parse /proc/meminfo numeric values on fields we're interested in 2020-11-29 18:03:50 +01:00
Lomanic
07887a9e9f [mem][linux] Add mocked test for VirtualMemory() and fix SReclaimable SUnreclaim retrieval 2020-11-29 17:54:17 +01:00
Lomanic
ca10f91f44
Merge pull request #1003 from ajacoutot/v3-process-openbsd
v3/process: unbreak on OpenBSD
2020-11-29 15:05:56 +01:00
Antoine Jacoutot
0178a24563 v3/process: unbreak on OpenBSD
Fix camel case: GetpageSizeWithContext -> GetPageSizeWithContext
2020-11-29 11:53:05 +01:00
Shirou Wakayama
74e1643f82 [load][windows] implement load on windows. 2020-11-19 22:58:49 +09:00
shirou
340db113de
Merge pull request #997 from shirou/feature/remove_circle_ci
remove circleci testing
2020-11-19 22:57:46 +09:00
shirou
34412e0b7f [net] relax NetIOCounterAll test 2020-11-19 22:24:36 +09:00
shirou
fd963e2e16 remove circleci, change to use go 1.13 for testing.
and badge.
2020-11-19 21:53:41 +09:00
shirou
6286bea32a
Merge pull request #989 from Lomanic/issue734tests
[ci] Implement automatic tests on GH Actions on linux, windows and darwin
2020-11-19 21:46:19 +09:00
shirou
2fb5da2f24
Merge pull request #977 from AtakanColak/add-load-for-windows
[load][windows] Implement load.Avg() for Windows
2020-11-16 17:20:39 +09:00
shirou
2c0ad9dfac
Merge pull request #988 from Lomanic/cpu-remove-windows-specific-dead-code
[v3][cpu][windows] Remove exported windows-specific dead code
2020-11-12 21:39:05 +09:00
Lomanic
2f46781b0e Make shell scripts shellcheck-compliant 2020-11-11 23:04:20 +01:00
Lomanic
b0b7969cbf [ci] Implement automatic shellcheck test on GH Actions 2020-11-11 23:03:48 +01:00
Lomanic
d6f7462429 Make mktypes.sh generate code for v3 2020-11-11 22:58:39 +01:00
AtakanColak
277c95057b tidy up loop control and mutex 2020-11-09 10:50:09 +03:00
AtakanColak
b2a3574216 remove percent 2020-11-09 10:37:31 +03:00
AtakanColak
fb44aead39 use ticker and explicit contants 2020-11-09 10:00:22 +03:00
Lomanic
318614d7ed [v3][process][darwin] Fix test Test_Pids_Fail missing testdata folder 2020-11-08 17:26:21 +01:00
Lomanic
995610e109 [process][windows] Fix Nice() test expecting Unix values 2020-11-08 17:13:56 +01:00
Lomanic
5641beec4c [process][darwin] Fix Parent() when lsof returns warnings
Same as #867, the error being:
error strconv.Atoi: parsing "      Output information may be incomplete.": invalid syntax
2020-11-08 17:13:56 +01:00
Lomanic
148a662b06 [process][darwin] Remove Groups() as it's non-functional 2020-11-08 17:13:56 +01:00
Lomanic
64e16cc8c3 [net][darwin] Fix tests with mismatched types 2020-11-08 17:13:56 +01:00
Lomanic
7f0ba43398 [net][darwin][freebsd] Fix tests with func not returning common.ErrNotImplementedError 2020-11-08 17:13:56 +01:00
Lomanic
907e475a45 [v3][process] Fix Test_Process_Status test with new Status() API 2020-11-08 17:13:56 +01:00
Lomanic
29304ebf73 [ci] Implement automatic tests on GH Actions on linux, windows and darwin
Based off 3710bfcc3e/.github/workflows/test.yml
2020-11-08 17:13:56 +01:00