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

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.
12 lines
297 B
Modula-2
12 lines
297 B
Modula-2
module github.com/shirou/gopsutil/v3
|
|
|
|
go 1.15
|
|
|
|
require (
|
|
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d
|
|
github.com/go-ole/go-ole v1.2.4 // indirect
|
|
github.com/stretchr/testify v1.6.1
|
|
github.com/tklauser/go-sysconf v0.3.4
|
|
golang.org/x/sys v0.0.0-20210217105451-b926d437f341
|
|
)
|