Esempio n. 1
0
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();
}
Esempio n. 2
0
 TError Statistics(TCgroup &cg, TUintMap &stat) const {
     return cg.GetUintMap(STAT, stat);
 }