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