Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::runtime::MemUsageTracker Class Reference

Class that tracks memory usage (mainly of send and receive buffers). More...

#include <MemUsage.h>

Public Member Functions

 MemUsageTracker ()
 Default constructor initializes everything to 0. More...
 
void incrementMemUsage (uint64_t size)
 Increment memory usage. More...
 
void decrementMemUsage (uint64_t size)
 Decrement memory usage. More...
 
void resetMemUsage ()
 Reset mem usage and max mem usage to 0. More...
 
int64_t getMaxMemUsage () const
 Get max mem usage. More...
 

Detailed Description

Class that tracks memory usage (mainly of send and receive buffers).

Constructor & Destructor Documentation

galois::runtime::MemUsageTracker::MemUsageTracker ( )
inline

Default constructor initializes everything to 0.

Member Function Documentation

void galois::runtime::MemUsageTracker::decrementMemUsage ( uint64_t  size)
inline

Decrement memory usage.

Parameters
sizeamount 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
sizeamount 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: