Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::sysinfo Namespace Reference

Functions

int64_t MemoryUsageProcess ()
 

Function Documentation

◆ MemoryUsageProcess()

int64_t operations_research::sysinfo::MemoryUsageProcess ( )

Return the memory usage in bytes of the process. Will return -1 if MemoryUsage is not supported on platform (e.g. Android).

Note
fixing this on Android isn't really feasible, memory usage is only available from Java. So any code depending on this needs to deal with the case where memory info is not available.

See base/sysinfo.h MemoryUsage

Definition at line 24 of file sysinfo.cc.