class ElasticAPM::Metrics::CpuMem::Linux::ProcSelfStat
@api private
Attributes
rss[R]
total[R]
vsize[R]
Public Instance Methods
read!()
click to toggle source
# File lib/elastic_apm/metrics/cpu_mem.rb, line 179 def read! stat = IO.readlines('/proc/self/stat') .lazy .first .split .map(&:to_i) @total = stat[UTIME_POS] + stat[STIME_POS] @vsize = stat[VSIZE_POS] @rss = stat[RSS_POS] self end