RTEMS  5.0.0
heapinfo.h
Go to the documentation of this file.
1 
9 /*
10  * COPYRIGHT (c) 1989-2006.
11  * On-Line Applications Research Corporation (OAR).
12  *
13  * The license and distribution terms for this file may be
14  * found in the file LICENSE in this distribution or at
15  * http://www.rtems.org/license/LICENSE.
16  */
17 
18 #ifndef _RTEMS_SCORE_HEAPINFO_H
19 #define _RTEMS_SCORE_HEAPINFO_H
20 
21 #include <stdint.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
40 typedef struct {
47 
53  uint64_t lifetime_freed;
54 
60  uintptr_t size;
61 
67  uintptr_t free_size;
68 
74  uintptr_t min_free_size;
75 
79  uint32_t free_blocks;
80 
84  uint32_t max_free_blocks;
85 
89  uint32_t used_blocks;
90 
94  uint32_t max_search;
95 
99  uint32_t searches;
100 
104  uint32_t allocs;
105 
109  uint32_t failed_allocs;
110 
114  uint32_t frees;
115 
119  uint32_t resizes;
121 
125 typedef struct {
129  uintptr_t number;
130 
134  uintptr_t largest;
135 
139  uintptr_t total;
141 
145 typedef struct {
146  Heap_Information Free;
147  Heap_Information Used;
148  Heap_Statistics Stats;
150 
153 #ifdef __cplusplus
154 }
155 #endif
156 
157 #endif
158 /* end of include file */
Run-time heap statistics.
Definition: heapinfo.h:40
uint64_t lifetime_freed
Lifetime number of bytes freed to this heap.
Definition: heapinfo.h:53
uint32_t frees
Total number of successful frees.
Definition: heapinfo.h:114
Information block returned by _Heap_Get_information().
Definition: heapinfo.h:145
uint32_t allocs
Total number of successful allocations.
Definition: heapinfo.h:104
uint64_t lifetime_allocated
Lifetime number of bytes allocated from this heap.
Definition: heapinfo.h:46
uint32_t failed_allocs
Total number of failed allocations.
Definition: heapinfo.h:109
uint32_t max_free_blocks
Maximum number of free blocks ever.
Definition: heapinfo.h:84
uint32_t used_blocks
Current number of used blocks.
Definition: heapinfo.h:89
uint32_t resizes
Total number of successful resizes.
Definition: heapinfo.h:119
uintptr_t free_size
Current free size in bytes.
Definition: heapinfo.h:67
Information about blocks.
Definition: heapinfo.h:125
uintptr_t size
Size of the allocatable area in bytes.
Definition: heapinfo.h:60
uintptr_t min_free_size
Minimum free size ever in bytes.
Definition: heapinfo.h:74
uintptr_t number
Number of blocks of this type.
Definition: heapinfo.h:129
uint32_t max_search
Maximum number of blocks searched ever.
Definition: heapinfo.h:94
uint32_t free_blocks
Current number of free blocks.
Definition: heapinfo.h:79
uintptr_t total
Total size of the blocks of this type.
Definition: heapinfo.h:139
uint32_t searches
Total number of searches.
Definition: heapinfo.h:99
uintptr_t largest
Largest block of this type.
Definition: heapinfo.h:134