mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
36430257fd
Point to the new fork of geth.
15 lines
302 B
Go
15 lines
302 B
Go
// +build !ios,!android
|
|
|
|
package metrics
|
|
|
|
import "github.com/elastic/gosigar"
|
|
|
|
func readCPUStats(stats *CPUStats) {
|
|
global := gosigar.Cpu{}
|
|
global.Get()
|
|
|
|
stats.GlobalTime = int64(global.User + global.Nice + global.Sys)
|
|
stats.GlobalWait = int64(global.Wait)
|
|
stats.LocalTime = getProcessCPUTime()
|
|
}
|