Commit Graph

25 Commits (37678fe053d027912f9d5f3d52af40956048008e)

Author SHA1 Message Date
shirou 2fa855f295 add MockEnv as more generic function. 4 years ago
shirou abacce2177 [process][linux] add test to parse fillFromStatus 4 years ago
shirou 008b5a41ef
Merge pull request #1060 from heptalium/master
Fix fillFromStatusWithContext() on systems with 128 bit signal masks.
4 years ago
Jens Meißner 14a1f64e7e
[v3][process][linux] Fix fillFromStatusWithContext() on systems with 128 bit signal masks. 4 years ago
Damilola Bello 61c36c7b8c Make limitToUint parse to uint instead of int 4 years ago
Lomanic c7a38de76e
Merge pull request #1052 from gballet/openbsd-arm-support
add support for OpenBSD arm64
4 years ago
shirou 79048ccbfa
Merge pull request #1035 from jblesener/fixmacosspaces
Fix spaces on long process names for MacOS
4 years ago
John Blesener 07797b12d3
Make cmdNameWithContext lower-case to avoid exporting it
Signed-off-by: John Blesener <jblesener@reactivelabs.com>
4 years ago
Guillaume Ballet 992d17af94 add support for OpenBSD arm64 4 years ago
Lomanic 0881c11a9a [process][posix] Fix #1049 check if procfs is mounted before checking if pid exists there
Benchmark before this change (process.NewProcess() calls process.PidExistsWithContext()
internally)

    go test -bench=BenchmarkNewProcess github.com/shirou/gopsutil/process
    goos: linux
    goarch: amd64
    pkg: github.com/shirou/gopsutil/process
    BenchmarkNewProcess-4              14722             78751 ns/op
    PASS
    ok      github.com/shirou/gopsutil/process      3.685s

Benchmark with this change applied

    go test -bench=BenchmarkNewProcess github.com/shirou/gopsutil/process
    goos: linux
    goarch: amd64
    pkg: github.com/shirou/gopsutil/process
    BenchmarkNewProcess-4              14835             80180 ns/op
    PASS
    ok      github.com/shirou/gopsutil/process      3.761s
4 years ago
Lomanic 62d8920abb [process][windows] Fix #714 call OpenProcess with PROCESS_QUERY_INFORMATION on WinXP 4 years ago
shirou a5a07ae83c [process][linux] apply #1033 to v3. 4 years ago
John Blesener e8b2bea47f
Fix spaces on long process names for MacOS 4 years ago
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.
4 years ago
shirou a9a6146c93 [process] fix MemoryInfo comment. remove Swap
fixes #1012
4 years ago
Rishabh Arya 5b1d8ecae7 fix smap parser 4 years ago
Antoine Jacoutot 0178a24563 v3/process: unbreak on OpenBSD
Fix camel case: GetpageSizeWithContext -> GetPageSizeWithContext
4 years ago
Lomanic 318614d7ed [v3][process][darwin] Fix test Test_Pids_Fail missing testdata folder 4 years ago
Lomanic 995610e109 [process][windows] Fix Nice() test expecting Unix values 4 years ago
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
4 years ago
Lomanic 148a662b06 [process][darwin] Remove Groups() as it's non-functional 4 years ago
Lomanic 907e475a45 [v3][process] Fix Test_Process_Status test with new Status() API 4 years ago
shirou 8e2446b0ac [v3][process] apply #962 4 years ago
shirou b7e74218ca [v3 migration] change process.Status returns []string with no letter status string. 4 years ago
shirou 005a35c436 [v3 migartion] add v3 sourcodes, and change disk.opts to []string 4 years ago