cctools
host_memory_info.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #ifndef MEMORY_INFO_H
9 #define MEMORY_INFO_H
10 
11 #include "int_sizes.h"
12 
22 int host_memory_info_get(UINT64_T * avail, UINT64_T * total);
23 
29 int host_memory_usage_get(UINT64_T * rss, UINT64_T * total);
30 
31 #endif
int host_memory_usage_get(UINT64_T *rss, UINT64_T *total)
Get current memory usage by this process.
int host_memory_info_get(UINT64_T *avail, UINT64_T *total)
Get current memory status.