SURFEX v8.1
General documentation of Surfex
Surfex_Git2
src
LIB
XRD44
utilities
getmaxrss.c
Go to the documentation of this file.
1
typedef
long
long
int
ll_t
;
2
#include <sys/resource.h>
3
#include <sys/time.h>
4
ll_t
5
getmaxrss_
()
6
{
7
const
ll_t
scaler = 1024;
/* in kilobytes */
8
ll_t
rc = 0;
9
struct
rusage r;
10
rc = getrusage(RUSAGE_SELF, &r);
11
rc = (rc == 0) ? (
ll_t
) r.ru_maxrss * scaler : 0;
12
return
rc;
13
}
getmaxrss_
ll_t getmaxrss_()
Definition:
getmaxrss.c:5
ll_t
long long int ll_t
Definition:
privpub.h:293
ll_t
long long int ll_t
Definition:
getmaxrss.c:1
Generated on Tue Jan 16 2018 16:23:22 for SURFEX v8.1 by
1.8.13