Class that tracks memory usage (mainly of send and receive buffers).
More...
#include <MemUsage.h>
Class that tracks memory usage (mainly of send and receive buffers).
galois::runtime::MemUsageTracker::MemUsageTracker |
( |
| ) |
|
|
inline |
Default constructor initializes everything to 0.
void galois::runtime::MemUsageTracker::decrementMemUsage |
( |
uint64_t |
size | ) |
|
|
inline |
Decrement memory usage.
- Parameters
-
size | amount to decrement mem usage by |
int64_t galois::runtime::MemUsageTracker::getMaxMemUsage |
( |
| ) |
const |
|
inline |
Get max mem usage.
- Returns
- maximum memory usage tracked so far
void galois::runtime::MemUsageTracker::incrementMemUsage |
( |
uint64_t |
size | ) |
|
|
inline |
Increment memory usage.
- Parameters
-
size | amount to increment mem usage by |
void galois::runtime::MemUsageTracker::resetMemUsage |
( |
| ) |
|
|
inline |
Reset mem usage and max mem usage to 0.
The documentation for this class was generated from the following file: