score: Delete superfluous Heap_Statistics::instance

This value depends on the _Heap_Initialize() call sequence and carries
no useful information.
This commit is contained in:
Sebastian Huber
2015-01-22 07:52:50 +01:00
parent c625a64121
commit 50a50313cc
4 changed files with 0 additions and 12 deletions
-2
View File
@@ -38,7 +38,6 @@ void rtems_shell_print_heap_stats(
)
{
printf(
"Instance number: %12" PRIu32 "\n"
"Size of the allocatable area in bytes: %12" PRIuPTR "\n"
"Minimum free size ever in bytes: %12" PRIuPTR "\n"
"Maximum number of free blocks ever: %12" PRIu32 "\n"
@@ -50,7 +49,6 @@ void rtems_shell_print_heap_stats(
"Total number of failed allocations: %12" PRIu32 "\n"
"Total number of successful frees: %12" PRIu32 "\n"
"Total number of successful resizes: %12" PRIu32 "\n",
s->instance,
s->size,
s->min_free_size,
s->max_free_blocks,
-5
View File
@@ -270,11 +270,6 @@ typedef struct {
*/
uint64_t lifetime_freed;
/**
* @brief Instance number of this heap.
*/
uint32_t instance;
/**
* @brief Size of the allocatable area in bytes.
*
-3
View File
@@ -31,8 +31,6 @@
#error "invalid CPU_ALIGNMENT value"
#endif
static uint32_t instance = 0;
/*
* _Heap_Initialize
*
@@ -284,7 +282,6 @@ uintptr_t _Heap_Initialize(
stats->min_free_size = first_block_size;
stats->free_blocks = 1;
stats->max_free_blocks = 1;
stats->instance = instance++;
_Heap_Protection_set_delayed_free_fraction( heap, 2 );
-2
View File
@@ -546,7 +546,6 @@ to the command. This includes the following information:
@item Number of used blocks
@item Largest used block
@item Total bytes used
@item Instance number
@item Size of the allocatable area in bytes
@item Minimum free size ever in bytes
@item Maximum number of free blocks ever
@@ -584,7 +583,6 @@ Total bytes free: 266208392
Number of used blocks: 167
Largest used block: 16392
Total bytes used: 83536
Instance number: 0
Size of the allocatable area in bytes: 266291928
Minimum free size ever in bytes: 266207360
Maximum number of free blocks ever: 6