epk_memory.h File Reference

Memory-related routines. More...


Functions

int epk_memusage ()


Detailed Description

This file provides function prototypes for memory-related routines, such as determining the current memory usage of the application in an platform-independent way.

Function Documentation

int epk_memusage (  ) 

Determines the current memory usage of the application in kilobytes. On systems providing virtual memory, only the resident portion is considered. Depending on the architecture, the value returned by this function is an estimate rather than the exact value, with a granularity of usually a few kilobytes.

Returns:
Memory usage in kilobytes upon successful completion. Otherwise, a value of -1 is returned.


SCALASCA    Copyright © 1998–2009 Forschungszentrum Jülich, Jülich Supercomputing Centre