shirou_gopsutil/process
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
2021-03-18 23:55:59 +01:00
..
testdata/darwin rename expected dir to testdata. 2017-03-15 23:01:06 +09:00
process.go Clarify the godoc of the Children function. 2021-02-04 18:03:52 +01:00
process_bsd.go Refactor "process" package 2020-10-12 18:15:29 +03:00
process_darwin.go [process][darwin] Fix Parent() when lsof returns warnings 2020-11-08 17:13:56 +01:00
process_darwin_386.go add platform compatibility 2017-01-27 20:35:58 -05:00
process_darwin_amd64.go [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 2016-03-22 23:09:12 +09:00
process_darwin_arm64.go [host][process][darwin] Go-fmt code from mktypes.sh from #917 2020-09-07 21:12:17 +02:00
process_darwin_cgo.go [darwin][process] Add cgo implementation of Exe() from PR #243 2019-09-05 18:36:32 +02:00
process_darwin_nocgo.go [process][darwin][nocgo] Fix #867 iterate on every lines returned by lsof to handle potential warnings 2020-05-20 23:50:21 +02:00
process_fallback.go Refactor "process" package 2020-10-12 18:15:29 +03:00
process_freebsd.go Refactor "process" package 2020-10-12 18:15:29 +03:00
process_freebsd_386.go run go fmt ./... 2017-02-01 23:05:29 +00:00
process_freebsd_amd64.go run go fmt ./... 2017-02-01 23:05:29 +00:00
process_freebsd_arm.go Add native struct support for FreeBSD/arm. 2017-02-01 08:25:48 -08:00
process_freebsd_arm64.go Add support for freebsd/arm64 2019-12-17 03:12:29 -05:00
process_linux.go Avoid returning slice into buffer from Readfile 2021-02-08 19:21:22 +01:00
process_openbsd.go process: unbreak build on OpenBSD 2020-10-24 15:35:19 +02:00
process_openbsd_386.go [host][mem][process][openbsd] Add 386 const and types definitions 2020-09-01 02:02:21 +02:00
process_openbsd_amd64.go run go fmt ./... 2017-02-01 23:05:29 +00:00
process_posix.go [process][posix] Fix #1049 check if procfs is mounted before checking if pid exists there 2021-03-18 23:55:59 +01:00
process_posix_test.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 2017-06-02 13:51:00 -07:00
process_race_test.go fix ppid cache race condition #964 2020-10-23 11:38:02 +03:00
process_test.go [process][windows] Fix Nice() test expecting Unix values 2020-11-08 17:13:56 +01:00
process_windows.go [process][windows] Fix #714 call OpenProcess with PROCESS_QUERY_INFORMATION on WinXP 2021-03-06 22:53:54 +01:00
process_windows_386.go Added retrieval of OS platform to determine better a process platform. 2020-05-04 20:16:05 -03:00
process_windows_amd64.go Added retrieval of OS platform to determine better a process platform. 2020-05-04 20:16:05 -03:00
types_darwin.go Add support for Darwin/ARM64 2020-08-10 21:26:24 -07:00
types_freebsd.go [process]freebsd: process_freebsd_amd64.go is now generated by cgo godefs. 2016-03-31 17:19:49 +09:00
types_openbsd.go run go fmt ./... 2017-02-01 23:05:29 +00:00