blob: f53ca67f299f1c55d5c71c627a40a90de1002be6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/****************************************************************************************************//**
* @file trace_heap.h
*
* @brief
*
* @version v0.1
* @date 2018-11-05
*
* @note
*******************************************************************************************************/
#ifndef _TRACE_HEAP_H_
#define _TRACE_HEAP_H_
#include "trace_common.h"
#include "trace_port_config.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _BLOCK_SIZE_LIST
{
uint32_t number;
uint32_t size[TRACE_HEAP_MAX_NUMBER_IN_BLOCK_LIST];
} BLOCK_SIZE_LIST;
typedef struct _HEAP_INFO
{
uint32_t total_size;
uint32_t curr_remain_size;
uint32_t minimum_ever_free_size;
//BLOCK_SIZE_LIST used_size_list;
BLOCK_SIZE_LIST free_size_list;
} HEAP_INFO;
extern void trace_heap(void);
#ifdef __cplusplus
}
#endif
#endif /*_TRACE_HEAP_H_*/
/******************* (C) COPYRIGHT 2015 Realtek Semiconductor Corporation *****END OF FILE****/
|