#include <memory.hpp>
◆ MemoryUsage()
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.
◆ current()
int osmium::MemoryUsage::current |
( |
| ) |
const |
|
inline |
Return current memory usage in MBytes.
◆ parse_number()
static int64_t osmium::MemoryUsage::parse_number |
( |
const std::string & |
line | ) |
|
|
inlinestaticprivate |
◆ peak()
int osmium::MemoryUsage::peak |
( |
| ) |
const |
|
inline |
Return peak memory usage in MBytes.
◆ m_current
int64_t osmium::MemoryUsage::m_current = 0 |
|
private |
◆ m_peak
int64_t osmium::MemoryUsage::m_peak = 0 |
|
private |
The documentation for this class was generated from the following file: