AutoPas  3.0.0
Loading...
Searching...
No Matches
Functions | Variables
autopas::memoryProfiler Namespace Reference

This namespace is used for memory profiling functions. More...

Functions

size_t currentMemoryUsage ()
 Reads the current RAM (VmRSS) usage from the operating system.
 

Variables

constexpr const char * statusFileName = "/proc/self/status"
 path to status file of current process
 

Detailed Description

This namespace is used for memory profiling functions.

Function Documentation

◆ currentMemoryUsage()

size_t autopas::memoryProfiler::currentMemoryUsage ( )

Reads the current RAM (VmRSS) usage from the operating system.

Returns
Memory usage in kilobytes.