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

     1  // (c) Copyright IBM Corp. 2021
     2  // (c) Copyright Instana Inc. 2020
     3  
     4  package process
     5  
     6  // MemStats represents memory stats for a process
     7  type MemStats struct {
     8  	Total  int
     9  	Rss    int
    10  	Shared int
    11  }
    12  
    13  // CPUStats represents CPU stats for a process
    14  type CPUStats struct {
    15  	User   int
    16  	System int
    17  }
    18  
    19  // LimitedResource represents a limited resource stat
    20  type LimitedResource struct {
    21  	Current int
    22  	Max     int
    23  }
    24  
    25  // ResourceLimits represents resource limits for a process
    26  type ResourceLimits struct {
    27  	OpenFiles LimitedResource
    28  }