MCPcopy Create free account
hub / github.com/3rdparty/libprocess / _mem_total_bytes

Method _mem_total_bytes

include/process/system.hpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141
142 Future<double> _mem_total_bytes()
143 {
144 Try<os::Memory> memory = os::memory();
145 if (memory.isSome()) {
146 return static_cast<double>(memory->total.bytes());
147 }
148 return Failure("Failed to get memory: " + memory.error());
149 }
150
151
152 Future<double> _mem_free_bytes()

Callers

nothing calls this directly

Calls 1

FailureClass · 0.85

Tested by

no test coverage detected