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

Method cpus

src/v1/resources.cpp:1978–1986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1976
1977
1978Option<double> Resources::cpus() const
1979{
1980 Option<Value::Scalar> value = get<Value::Scalar>("cpus");
1981 if (value.isSome()) {
1982 return value->value();
1983 } else {
1984 return None();
1985 }
1986}
1987
1988
1989Option<double> Resources::gpus() const

Callers 15

TESTFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
updateMethod · 0.45
__updateMethod · 0.45
usageMethod · 0.45
_usageFunction · 0.45
updateMethod · 0.45
prepareMethod · 0.45

Calls 3

NoneClass · 0.85
isSomeMethod · 0.45
valueMethod · 0.45

Tested by 6

TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36