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

Function enabled

src/linux/cgroups.cpp:440–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438
439
440bool enabled()
441{
442 return os::exists("/proc/cgroups");
443}
444
445
446Try<set<string>> hierarchies()

Callers 15

foreachFunction · 0.70
prepareFunction · 0.70
enableFunction · 0.70
disableFunction · 0.70
CreateSlaveFlagsMethod · 0.50
SetUpTestCaseMethod · 0.50
TearDownTestCaseMethod · 0.50
SetUpMethod · 0.50
TearDownMethod · 0.50
disableMethod · 0.50
NetClsCgroupsFilterMethod · 0.50
TEST_FFunction · 0.50

Calls 10

subsystemsFunction · 0.85
pairsFunction · 0.85
existsFunction · 0.70
readFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
getMethod · 0.45
countMethod · 0.45
sizeMethod · 0.45

Tested by 8

CreateSlaveFlagsMethod · 0.40
SetUpTestCaseMethod · 0.40
TearDownTestCaseMethod · 0.40
SetUpMethod · 0.40
TearDownMethod · 0.40
disableMethod · 0.40
NetClsCgroupsFilterMethod · 0.40
TEST_FFunction · 0.40