TError TCpuacctSubsystem::SystemUsage(TCgroup &cg, uint64_t &value) const { TUintMap stat; TError error = cg.GetUintMap("cpuacct.stat", stat); if (error) return error; value = stat["system"] * (1000000000 / sysconf(_SC_CLK_TCK)); return TError::Success(); }
TError Statistics(TCgroup &cg, TUintMap &stat) const { return cg.GetUintMap(STAT, stat); }