RTEMS: cpukit/include/rtems/score/heapinfo.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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
24extern "C" {
25#endif
26
40 typedef struct {
46 uint64_t lifetime_allocated;
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;
120} Heap_Statistics;
121
125 typedef struct {
129 uintptr_t number;
130
134 uintptr_t largest;
135
139 uintptr_t total;
140} Heap_Information;
141
145 typedef struct {
146 Heap_Information Free;
147 Heap_Information Used;
148 Heap_Statistics Stats;
149} Heap_Information_block;
150
153#ifdef __cplusplus
154}
155#endif
156
157#endif
158/* end of include file */
Heap_Information_block
Information block returned by _Heap_Get_information().
Definition: heapinfo.h:145
Heap_Information
Information about blocks.
Definition: heapinfo.h:125
Heap_Information::total
uintptr_t total
Total size of the blocks of this type.
Definition: heapinfo.h:139
Heap_Information::largest
uintptr_t largest
Largest block of this type.
Definition: heapinfo.h:134
Heap_Information::number
uintptr_t number
Number of blocks of this type.
Definition: heapinfo.h:129
Heap_Statistics
Run-time heap statistics.
Definition: heapinfo.h:40
Heap_Statistics::searches
uint32_t searches
Total number of searches.
Definition: heapinfo.h:99
Heap_Statistics::used_blocks
uint32_t used_blocks
Current number of used blocks.
Definition: heapinfo.h:89
Heap_Statistics::frees
uint32_t frees
Total number of successful frees.
Definition: heapinfo.h:114
Heap_Statistics::lifetime_freed
uint64_t lifetime_freed
Lifetime number of bytes freed to this heap.
Definition: heapinfo.h:53
Heap_Statistics::max_search
uint32_t max_search
Maximum number of blocks searched ever.
Definition: heapinfo.h:94
Heap_Statistics::lifetime_allocated
uint64_t lifetime_allocated
Lifetime number of bytes allocated from this heap.
Definition: heapinfo.h:46
Heap_Statistics::failed_allocs
uint32_t failed_allocs
Total number of failed allocations.
Definition: heapinfo.h:109
Heap_Statistics::min_free_size
uintptr_t min_free_size
Minimum free size ever in bytes.
Definition: heapinfo.h:74
Heap_Statistics::allocs
uint32_t allocs
Total number of successful allocations.
Definition: heapinfo.h:104
Heap_Statistics::size
uintptr_t size
Size of the allocatable area in bytes.
Definition: heapinfo.h:60
Heap_Statistics::max_free_blocks
uint32_t max_free_blocks
Maximum number of free blocks ever.
Definition: heapinfo.h:84
Heap_Statistics::free_size
uintptr_t free_size
Current free size in bytes.
Definition: heapinfo.h:67
Heap_Statistics::resizes
uint32_t resizes
Total number of successful resizes.
Definition: heapinfo.h:119
Heap_Statistics::free_blocks
uint32_t free_blocks
Current number of free blocks.
Definition: heapinfo.h:79