Sierra Toolkit
Version of the Day
MallocUsed.h
1
/*------------------------------------------------------------------------*/
2
/* Copyright 2011 Sandia Corporation. */
3
/* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
4
/* license for use of this work by or on behalf of the U.S. Government. */
5
/* Export of this program may require a license from the */
6
/* United States Government. */
7
/*------------------------------------------------------------------------*/
8
9
#ifndef STK_UTIL_UTIL_MALLOCUSED_H
10
#define STK_UTIL_UTIL_MALLOCUSED_H
11
12
#include <stdlib.h>
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
#if defined SIERRA_PTMALLOC3_ALLOCATOR || defined SIERRA_PTMALLOC2_ALLOCATOR
19
size_t
malloc_used();
20
size_t
malloc_footprint();
21
size_t
malloc_max_footprint();
22
#else
23
inline
size_t
malloc_used() {
24
return
0;
25
}
26
inline
size_t
malloc_footprint() {
27
return
0;
28
}
29
inline
size_t
malloc_max_footprint() {
30
return
0;
31
}
32
#endif
33
34
#ifdef __cplusplus
35
}
/* extern "C" */
36
#endif
37
38
#endif
/* STK_UTIL_UTIL_MALLOCUSED_H */
stk_util
stk_util
util
MallocUsed.h
Generated by
1.8.14