MCPcopy Create free account
hub / github.com/apache/mesos / cfs_quota_us

Function cfs_quota_us

src/linux/cgroups.cpp:2239–2250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2237
2238
2239Try<Duration> cfs_quota_us(
2240 const string& hierarchy,
2241 const string& cgroup)
2242{
2243 Try<string> read = cgroups::read(hierarchy, cgroup, "cpu.cfs_quota_us");
2244
2245 if (read.isError()) {
2246 return Error(read.error());
2247 }
2248
2249 return Duration::parse(strings::trim(read.get()) + "us");
2250}
2251
2252
2253Try<Nothing> cfs_quota_us(

Callers 5

TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
__updateMethod · 0.85
updateMethod · 0.85

Calls 10

trimFunction · 0.85
usMethod · 0.80
readFunction · 0.70
parseFunction · 0.70
writeFunction · 0.70
stringifyFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
getMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68