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

Method mem

src/common/resources.cpp:2019–2027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2017
2018
2019Option<Bytes> Resources::mem() const
2020{
2021 Option<Value::Scalar> value = get<Value::Scalar>("mem");
2022 if (value.isSome()) {
2023 return Megabytes(static_cast<uint64_t>(value->value()));
2024 } else {
2025 return None();
2026 }
2027}
2028
2029
2030Option<Bytes> Resources::disk() const

Callers 1

applyMethod · 0.45

Calls 4

MegabytesFunction · 0.85
NoneClass · 0.85
isSomeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected