github.com/mier85/go-sensor@v1.30.1-0.20220920111756-9bf41b3bc7e0/process/stats_reader.go (about) 1 // (c) Copyright IBM Corp. 2021 2 // (c) Copyright Instana Inc. 2020 3 4 // +build !linux 5 6 package process 7 8 type statsReader struct{} 9 10 // Stats returns a process resource stats reader for current process 11 func Stats() statsReader { 12 return statsReader{} 13 } 14 15 // Memory returns memory stats for current process 16 func (statsReader) Memory() (MemStats, error) { 17 return MemStats{}, nil 18 } 19 20 // CPU returns CPU stats for current process and the CPU tick they were taken on 21 func (statsReader) CPU() (CPUStats, int, error) { 22 return CPUStats{}, 0, nil 23 } 24 25 // Limits returns resource limits configured for current process 26 func (statsReader) Limits() (ResourceLimits, error) { 27 return ResourceLimits{}, nil 28 }