class ElasticAPM::Metrics::CpuMemSet::Linux::ProcSelfStat

@api private

def read!

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