#include <memory.hpp>
osmium::MemoryUsage::MemoryUsage |
( |
| ) |
|
|
inline |
Get the memory usage for the current process. The constructor will get the memory usage. Use the current() and peak() calls to access the result.
This will only work on Linux, on other architectures this will always return 0.
int osmium::MemoryUsage::current |
( |
| ) |
const |
|
inline |
Return current memory usage in MBytes.
int osmium::MemoryUsage::parse_number |
( |
const std::string & |
line | ) |
|
|
inlineprivate |
int osmium::MemoryUsage::peak |
( |
| ) |
const |
|
inline |
Return peak memory usage in MBytes.
int osmium::MemoryUsage::m_current = 0 |
|
private |
int osmium::MemoryUsage::m_peak = 0 |
|
private |
The documentation for this class was generated from the following file: