github.com/instana/go-sensor@v1.62.2-0.20240520081010-4919868049e1/process/stats_reader.go (about)

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