MSTAR的内存分配情况的介绍与查看

2012-02-03 15:14

MSTAR的内存分配情况的介绍

MSTAR平台中,用于MALLOC的内存分为2块,一块叫POOL,一块叫HEAP。

POOL总共有6个,POOL0~POOL5(后面简写为P0,P1,P2,P3,P4,P5),每个POOL对应的大小和数量是固定的。
POOL是有很多个小块内存组合起来的大内存池,POOL的存在,可以很大限度的减少内存碎片产生。
当需要分配小块内存时,一般都是从POOL里面分配出来,总的POOL大小,大约是321KB。
P0(12*800)+P1(44*2000)+P2(108*500)+P3(236*500)+P4(492*80)+P5(1004*20)=329040=321.328125KB
POOL相当于全局数组变量,所以POOL本身不会产生内存碎片。
系统启动时就占据了这么多的RAM空间,但是系统并没有主动去使用这些数组变量。
当有人调用MALLOC时,系统可能会从POOL里面分配出内存。
POOL的大小和数量,因为代码没有开放,所以暂时无法调整大小,后续版本会开放出来。
在2.04.02版本中,可以在sys_sys_init.h中找到POOL相关的宏定义
2.01.18版本中,可以在init.ho中找到POOL相关的宏定义。

HEAP的大小是不固定的,HEAP是一个整块的大内存。HEAP的大小 = RAM的总大小 – 全局变量占用的RAM空间。
例如在128+32的MCP中,RAM总大小为4MB,平台原始版本全局变量的大小在1.1MB左右,所以HEAP的大小通常在2.9MB。
HEAP的大小是无法调整的,由系统自动根据RAM的总空间和全局变量占用的空间计算得到。
RAM的总大小,在2.04.02版本中,可以在OPTION里面找到定义,
SYS_PHY_RAM_SIZE_SETTING = 0x00400000
在2.01.18版本中,可以在sys_config.h中找到RAM的总大小定义
#define SYS_PHY_RAM_SIZE 0x02000000    //32MB
 
使用MALLOC时,系统会根据要MALLOC的内存大小和当前内存的状况来选择从POOL来分配还是从HEAP来分配。
分配时,一般是先看POOL是否有合适的内存分配,如果没有的话,才从HEAP进行分配。

例如要分配200字节的内存,系统首先会看POOL3是否有可用的内存块,如果有的话,那么就会从POOL3里面分配一块内存出来。
系统首先会看POOL3有没可用的内存块的原因是,POOL3的块大小是236字节,可以满足200字节的需求,虽然这样会浪费掉36字节。
如果POOL3已经被用完,那么不管POOL4,POOL5里面是否还有可用的内存块,都会从HEAP里面直接分配内存,
因为POOL4的块大小是492字节,如果从POOL4分配的话会浪费掉292字节的内存。

如果从POOL里面分配的话,一般都会浪费掉不少内存。
极端的情况,需要分配493字节的内存,POOL4的大小是492,无法满足,只能从POOL5分配,这样会浪费1004-493=511字节。
但这样做,能减少HEAP里面内存碎片的产生。

假如要分配大于1004字节的内存,那么就直接会从HEAP里面分配了。因为POOL里面最大的块大小就是1004。

 

MSTAR的内存分配情况的查看

1、在模拟器上查看(只用于模拟器)
在模拟器上的MSTAR simulator窗口的Trace标签页的下方,有个Memory Information的显示项,它显示了Heap和Pool。

2、在手机屏幕上查看(可用于模拟器和终端)
输入*#*#1705#进入工程模式菜单,在EMMI Debug项下,Enable show memory info.后,手机屏幕会就会显示。

这里显示的值(前面是Heap,后面是Pool)的跟模拟器上显示的值可能不同,这里的不包含Vendor申请的。
3、用TMT抓看内存信息(只用于终端)
将手机连接上TMT,打开RTK的LEVEL2和LEVEL5。
然后再TMT中选择菜单Commands->Get Debug Infos->Request RTK Status。
接着TMT中会打印出内存里面POOL和HEAP的信息。如下是我获取到的内容(M100):
TR#0018  RTK[02] ##Stack
TR#0019  RTK[02]  Stack Pool Group
TR#001A  RTK[02]  -------+--------+-------+--------+--------+------
TR#001B  RTK[02]   POOL  |  SIZE  | TOTAL |  FREE  |  USED  |  MAX
TR#001C  RTK[02]  -------+--------+-------+--------+--------+------
TR#001D  RTK[02]     0   |    12  |  800  |   304  |   496  |  676
TR#001E  RTK[02]     1   |    44  | 2000  |   547  |  1453  | 1764
TR#001F  RTK[02]     2   |   108  |  500  |   101  |   399  |  500
TR#0020  RTK[02]     3   |   236  |  500  |   192  |   308  |  500
TR#0021  RTK[02]     4   |   492  |   80  |    10  |    70  |   80
TR#0022  RTK[02]     5   |  1004  |   20  |     1  |    19  |   20
TR#0023  RTK[02]                                                                            
TR#0024  RTK[02] =========================== Heap Usage Histogram ===========================
TR#0025  RTK[02] Total heap size = 14834112
TR#0026  RTK[02] Total free heap size = 7067552
TR#0027  RTK[02] Total free heap blocks = 16
TR#0028  RTK[02] Total allocated heap size = 7762240
TR#0029  RTK[02] Maximum total allocated heap size = 9524224
TR#002A  RTK[02] Total allocated heap blocks = 106
TR#002B  RTK[02] Maximum free block size = 6593744
TR#002C  RTK[02]
TR#002D  RTK[02] Level 1 bitmap = 00008533
TR#002E  RTK[02] Memory pool overhead = 4320
TR#002F  RTK[05] ============================= Heap Blocks List =============================
TR#0030  RTK[05] ------------+------------+------------+----------+---------------+-------------------------------
TR#0031  RTK[05]    Status   |  Base Addr |  End Addr  |   Size   |   Timestamp   |   task   &   address         
TR#0032  RTK[05] ------------+------------+------------+----------+---------------+-------------------------------
TR#0033  RTK[05]   ALLOCATED | 0x011daf60 | 0x011db458 |     1272 |         136   | RTK INIT      - DrvLcdTbl_getDisplayTblAddr (0x00311a57)
TR#0034  RTK[05]   ALLOCATED | 0x011db480 | 0x012560d8 |   502872 |         209   | RTK INIT      - main (0x00005c75)
TR#0035  RTK[05]   ALLOCATED | 0x01256100 | 0x0125e898 |    34712 |         210   | RTK INIT      - hwldsp_GetDSPPatchInFlash (0x00227e9b)
TR#0036  RTK[05]   ALLOCATED | 0x0125e8c0 | 0x0125e918 |       88 |         210   | RTK INIT      - hwldsp_RelocatePatchInfo (0x00227de7)
TR#0037  RTK[05]   ALLOCATED | 0x0125e940 | 0x0125e9f8 |      184 |         210   | RTK INIT      - fcm_CreateMboxIndexArray (0x00146aeb)
TR#0038  RTK[05]   ALLOCATED | 0x0125ea20 | 0x0125ead8 |      184 |         210   | RTK INIT      - fcm_Init (0x0014639f)
TR#0039  RTK[05]   ALLOCATED | 0x0125eb00 | 0x0125eb38 |       56 |         215   | RLU   (0x1a) - fcm_GrowTable (0x00146b47)
TR#003A  RTK[05]   ALLOCATED | 0x0125eb60 | 0x0125eb98 |       56 |         215   | RLU   (0x1a) - fcm_TrcFindStreamIndex (0x000036e1)
TR#003B  RTK[05]   ALLOCATED | 0x0125ebc0 | 0x0125ebf8 |       56 |         215   | RLU2  (0x1b) - fcm_GrowTable (0x00146b47)
TR#003C  RTK[05]   ALLOCATED | 0x0125ec20 | 0x0125ec58 |       56 |         215   | RLU2  (0x1b) - fcm_TrcFindStreamIndex (0x000036e1)
TR#003D  RTK[05]   ALLOCATED | 0x0125ec80 | 0x0125ecb8 |       56 |         216   | LLC   (0x16) - fcm_GrowTable (0x00146b47)
TR#003E  RTK[05]   ALLOCATED | 0x0125ece0 | 0x0125ed18 |       56 |         216   | LLC2  (0x17) - fcm_GrowTable (0x00146b47)
TR#003F  RTK[05]   FREE      | 0x0125ed30 | 0x0125edf8 |      200 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#0040  RTK[05]   ALLOCATED | 0x0125ee00 | 0x0125ee38 |       56 |      852688   | SDCP2 (0x15) - fcm_ShrinkTable (0x00146c75)
TR#0041  RTK[05]   ALLOCATED | 0x0125ee60 | 0x0125ee98 |       56 |         216   | SDCP2 (0x15) - fcm_TrcFindStreamIndex (0x000036e1)
TR#0042  RTK[05]   ALLOCATED | 0x0125eec0 | 0x0125f378 |     1208 |         224   | V24   (0x25) - v24_UartInitExt (0x000bc677)
TR#0043  RTK[05]   ALLOCATED | 0x0125f3a0 | 0x0125f3d8 |       56 |         224   | V24   (0x25) - v24_HubRegisterPort (0x000b8def)
TR#0044  RTK[05]   ALLOCATED | 0x0125f400 | 0x0125f538 |      312 |         224   | V24   (0x25) - v24_pal_CreateContext (0x000bb765)
TR#0045  RTK[05]   ALLOCATED | 0x0125f560 | 0x0125fe78 |     2328 |         224   | V24   (0x25) - v24_AtRegisterPortExt (0x000ba6f1)
TR#0046  RTK[05]   ALLOCATED | 0x0125fea0 | 0x01260358 |     1208 |         224   | V24   (0x25) - v24_UsbInitContext (0x000df0db)
TR#0047  RTK[05]   ALLOCATED | 0x01260380 | 0x012603b8 |       56 |         224   | V24   (0x25) - v24_HubRegisterPort (0x000b8def)
TR#0048  RTK[05]   ALLOCATED | 0x012603e0 | 0x01260518 |      312 |         224   | V24   (0x25) - v24_pal_CreateContext (0x000bb765)
TR#0049  RTK[05]   ALLOCATED | 0x01260540 | 0x01260e58 |     2328 |         224   | V24   (0x25) - v24_AtRegisterPortExt (0x000ba6f1)
TR#004A  RTK[05]   ALLOCATED | 0x01260e80 | 0x012611d8 |      856 |         224   | MDL   (0x1c) - ati_mflowAllocationContextForPortWithModuleId (0x002bd92f)
TR#004B  RTK[05]   ALLOCATED | 0x01261200 | 0x01261558 |      856 |         224   | MDL   (0x1c) - ati_mflowAllocationContextForPortWithModuleId (0x002bd92f)
TR#004C  RTK[05]   ALLOCATED | 0x01261580 | 0x012618d8 |      856 |         225   | MDL   (0x1c) - ati_mflowAllocationContextForPort (0x002bcf97)
TR#004D  RTK[05]   ALLOCATED | 0x01261900 | 0x01261c58 |      856 |         225   | MDL   (0x1c) - ati_mflowAllocationContextForPort (0x002bcf97)
TR#004E  RTK[05]   ALLOCATED | 0x01261c80 | 0x01261fd8 |      856 |         226   | MDL2  (0x1d) - ati_mflowAllocationContextForPortWithModuleId (0x002bd92f)
TR#004F  RTK[05]   ALLOCATED | 0x01262000 | 0x01262358 |      856 |         226   | MDL2  (0x1d) - ati_mflowAllocationContextForPortWithModuleId (0x002bd92f)
TR#0050  RTK[05]   ALLOCATED | 0x01262380 | 0x012626d8 |      856 |         226   | MDL2  (0x1d) - ati_mflowAllocationContextForPort (0x002bcf97)
TR#0051  RTK[05]   ALLOCATED | 0x01262700 | 0x01262a58 |      856 |         227   | MDL2  (0x1d) - ati_mflowAllocationContextForPort (0x002bcf97)
TR#0052  RTK[05]   ALLOCATED | 0x01262a80 | 0x01262f38 |     1208 |         227   | V24   (0x25) - v24_UsbInitContext (0x000df0db)
TR#0053  RTK[05]   ALLOCATED | 0x01262f60 | 0x012685d8 |    22136 |         230   | CAM   (0x60) - SensorDetectionCallback (0x000afa9b)
TR#0054  RTK[05]   ALLOCATED | 0x01268600 | 0x01268958 |      856 |         231   | MDL   (0x1c) - ati_mflowAllocationContextForPort (0x002bcf97)
TR#0055  RTK[05]   ALLOCATED | 0x01268980 | 0x01268cd8 |      856 |         231   | MDL2  (0x1d) - ati_mflowAllocationContextForPort (0x002bcf97)
TR#0056  RTK[05]   ALLOCATED | 0x01268d00 | 0x01289518 |   133144 |         235   | IP    (0x56) - wifi_tx_heap_init (0x000dcb41)
TR#0057  RTK[05]   ALLOCATED | 0x01289540 | 0x012a9d58 |   133144 |         235   | IP    (0x56) - wifi_rx_heap_init (0x000dca79)
TR#0058  RTK[05]   ALLOCATED | 0x012a9d80 | 0x012a9db8 |       56 |     2764426   | V24   (0x25) - v24_HapcAllocDataMemory (0x000cb2f7)
TR#0059  RTK[05]   ALLOCATED | 0x012a9de0 | 0x012af258 |    21624 |         330   | EMMI  (0x34) - file_finit (0x002f37d1)
TR#005A  RTK[05]   ALLOCATED | 0x012af280 | 0x013ccad8 |  1169496 |         332   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#005B  RTK[05]   ALLOCATED | 0x013ccb00 | 0x013cd658 |     2904 |         359   | EMMI  (0x34) - _MAE_ThmCusParser (0x003817a5)
TR#005C  RTK[05]   ALLOCATED | 0x013cd680 | 0x0154aa58 |  1561560 |         359   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#005D  RTK[05]   ALLOCATED | 0x0154aa80 | 0x01753a78 |  2134008 |         394   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#005E  RTK[05]   ALLOCATED | 0x01753aa0 | 0x01762a38 |    61336 |         442   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#005F  RTK[05]   ALLOCATED | 0x01762a60 | 0x017633f8 |     2456 |         443   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0060  RTK[05]   ALLOCATED | 0x01763420 | 0x01763bf8 |     2008 |         444   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0061  RTK[05]   ALLOCATED | 0x01763c20 | 0x01764098 |     1144 |         445   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0062  RTK[05]   ALLOCATED | 0x017640c0 | 0x01766d98 |    11480 |         445   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0063  RTK[05]   ALLOCATED | 0x01766dc0 | 0x017795b8 |    75768 |         446   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0064  RTK[05]   ALLOCATED | 0x017795e0 | 0x0177a598 |     4024 |         448   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0065  RTK[05]   ALLOCATED | 0x0177a5c0 | 0x0177b118 |     2904 |         448   | EMMI  (0x34) - _MAE_ThmCusParser (0x003817a5)
TR#0066  RTK[05]   ALLOCATED | 0x0177b140 | 0x0177b678 |     1336 |         448   | EMMI  (0x34) - FONTBASE_New (0x004f29d9)
TR#0067  RTK[05]   ALLOCATED | 0x0177b6a0 | 0x0177b6d8 |       56 |     2764389   | V24   (0x25) - v24_HapcAllocDataMemory (0x000cb2f7)
TR#0068  RTK[05]   ALLOCATED | 0x0177b700 | 0x0179a718 |   127000 |         449   | EMMI  (0x34) - fms_NRAIInit (0x002bcb87)
TR#0069  RTK[05]   ALLOCATED | 0x0179a740 | 0x0179ab78 |     1080 |         517   | EMMI  (0x34) - PHBSRV_New (0x0046788f)
TR#006A  RTK[05]   FREE      | 0x0179ab90 | 0x017a8af8 |    57192 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#006B  RTK[05]   ALLOCATED | 0x017a8b00 | 0x017a8ef8 |     1016 |     2699949   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#006C  RTK[05]   FREE      | 0x017a8f10 | 0x017a9098 |      392 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#006D  RTK[05]   ALLOCATED | 0x017a90a0 | 0x017ab6b8 |     9752 |        3670   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#006E  RTK[05]   ALLOCATED | 0x017ab6e0 | 0x017aba98 |      952 |     2715015   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#006F  RTK[05]   FREE      | 0x017abab0 | 0x017abb98 |      232 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#0070  RTK[05]   ALLOCATED | 0x017abba0 | 0x017abfb8 |     1048 |        2674   | MDL2  (0x1d) - VmlPhBSimFileStatusRsp (0x0030d4a3)
TR#0071  RTK[05]   ALLOCATED | 0x017abfe0 | 0x017ac8d8 |     2296 |     2730511   | EMMI  (0x34) - _Image_DrvDecode (0x00334051)
TR#0072  RTK[05]   ALLOCATED | 0x017ac900 | 0x017ad1f8 |     2296 |     2730512   | EMMI  (0x34) - _Image_DrvDecode (0x00334051)
TR#0073  RTK[05]   ALLOCATED | 0x017ad220 | 0x017b0478 |    12888 |     2699947   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#0074  RTK[05]   ALLOCATED | 0x017b04a0 | 0x017b16b8 |     4632 |     2730508   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#0075  RTK[05]   ALLOCATED | 0x017b16e0 | 0x017b1fd8 |     2296 |     2730508   | EMMI  (0x34) - _Image_DrvDecode (0x00334051)
TR#0076  RTK[05]   ALLOCATED | 0x017b2000 | 0x017b2298 |      664 |     2715123   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#0077  RTK[05]   FREE      | 0x017b22b0 | 0x017b2378 |      200 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#0078  RTK[05]   ALLOCATED | 0x017b2380 | 0x017b2798 |     1048 |        2853   | MDL   (0x1c) - VmlPhBSimFileStatusRsp (0x0030d4a3)
TR#0079  RTK[05]   ALLOCATED | 0x017b27c0 | 0x017b2ef8 |     1848 |        3671   | EMMI  (0x34) - BaseAppletInit (0x00502a57)
TR#007A  RTK[05]   ALLOCATED | 0x017b2f20 | 0x017b30d8 |      440 |    14049495   | SPV2  (0x0f) - spv3_IsBCCHReq (0x000acaed)
TR#007B  RTK[05]   ALLOCATED | 0x017b3100 | 0x017b3138 |       56 |     2764466   | V24   (0x25) - v24_HapcAllocDataMemory (0x000cb2f7)
TR#007C  RTK[05]   FREE      | 0x017b3150 | 0x017b3198 |       72 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#007D  RTK[05]   ALLOCATED | 0x017b31a0 | 0x017b35d8 |     1080 |        3705   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#007E  RTK[05]   ALLOCATED | 0x017b3600 | 0x017b51b8 |     7096 |        3840   | EMMI  (0x34) - _CopySetupMenuCB (0x005d430b)
TR#007F  RTK[05]   ALLOCATED | 0x017b51e0 | 0x017b5ed8 |     3320 |        4049   | EMMI  (0x34) - mmi_SMI_ResetSIMBuffer (0x004d3c7f)
TR#0080  RTK[05]   ALLOCATED | 0x017b5f00 | 0x017b6a78 |     2936 |        4049   | EMMI  (0x34) - mmi_SMI_ResetSIMBuffer (0x004d3cd1)
TR#0081  RTK[05]   ALLOCATED | 0x017b6aa0 | 0x017b8878 |     7640 |     2699939   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#0082  RTK[05]   FREE      | 0x017b8890 | 0x017b8958 |      200 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#0083  RTK[05]   ALLOCATED | 0x017b8960 | 0x017bc518 |    15288 |     2699893   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0084  RTK[05]   ALLOCATED | 0x017bc540 | 0x017c3d98 |    30808 |     2699897   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#0085  RTK[05]   ALLOCATED | 0x017c3dc0 | 0x017c46b8 |     2296 |     2730510   | EMMI  (0x34) - _Image_DrvDecode (0x00334051)
TR#0086  RTK[05]   ALLOCATED | 0x017c46e0 | 0x017c4fd8 |     2296 |     2699942   | EMMI  (0x34) - _Image_DrvDecode (0x00334051)
TR#0087  RTK[05]   ALLOCATED | 0x017c5000 | 0x017c53f8 |     1016 |     2699948   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#0088  RTK[05]   FREE      | 0x017c5410 | 0x017c5538 |      296 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#0089  RTK[05]   ALLOCATED | 0x017c5540 | 0x017c5658 |      280 |     4732439   | EMMI  (0x34) - ModelBase_AddListener (0x0044f55f)
TR#008A  RTK[05]   ALLOCATED | 0x017c5680 | 0x017d37d8 |    57688 |     2699938   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#008B  RTK[05]   FREE      | 0x017d37f0 | 0x017f7d58 |   148840 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#008C  RTK[05]   ALLOCATED | 0x017f7d60 | 0x017fa158 |     9208 |        3840   | EMMI  (0x34) - _CopySetupMenuCB (0x005d430b)
TR#008D  RTK[05]   ALLOCATED | 0x017fa180 | 0x018019d8 |    30808 |     2699900   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#008E  RTK[05]   FREE      | 0x018019f0 | 0x01836b98 |   217512 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#008F  RTK[05]   ALLOCATED | 0x01836ba0 | 0x01837898 |     3320 |        5382   | EMMI  (0x34) - mmi_SMI_ResetSIMBuffer (0x004d3c7f)
TR#0090  RTK[05]   ALLOCATED | 0x018378c0 | 0x01838438 |     2936 |        5382   | EMMI  (0x34) - mmi_SMI_ResetSIMBuffer (0x004d3cd1)
TR#0091  RTK[05]   ALLOCATED | 0x01838460 | 0x01839cd8 |     6264 |        6263   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0092  RTK[05]   ALLOCATED | 0x01839d00 | 0x0183abd8 |     3800 |     2699939   | EMMI  (0x34) - _Image_DrvDecode (0x00334051)
TR#0093  RTK[05]   FREE      | 0x0183abf0 | 0x0183acb8 |      200 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#0094  RTK[05]   ALLOCATED | 0x0183acc0 | 0x01841338 |    26232 |        6262   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#0095  RTK[05]   ALLOCATED | 0x01841360 | 0x01843b98 |    10296 |     2715123   | USB   (0x5b) - DrvUsbCdcBufferAlloc (0x00152d7b)
TR#0096  RTK[05]   FREE      | 0x01843bb0 | 0x0184db58 |    40872 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#0097  RTK[05]   ALLOCATED | 0x0184db60 | 0x0184ea78 |     3864 |         562   | EMMI  (0x34) - ArrayModel_EnsureCapacity (0x00372163)
TR#0098  RTK[05]   ALLOCATED | 0x0184eaa0 | 0x01850c78 |     8664 |         562   | EMMI  (0x34) - ArrayModel_EnsureCapacity (0x00372163)
TR#0099  RTK[05]   ALLOCATED | 0x01850ca0 | 0x01852e78 |     8664 |         562   | EMMI  (0x34) - ArrayModel_EnsureCapacity (0x00372163)
TR#009A  RTK[05]   ALLOCATED | 0x01852ea0 | 0x01855078 |     8664 |         562   | EMMI  (0x34) - ArrayModel_EnsureCapacity (0x00372163)
TR#009B  RTK[05]   ALLOCATED | 0x018550a0 | 0x01856058 |     4024 |         569   | EMMI  (0x34) - MAEDataMgrInit (0x00296ca1)
TR#009C  RTK[05]   ALLOCATED | 0x01856080 | 0x01856578 |     1272 |         572   | EMMI  (0x34) - MMSTRANSSRV_New (0x005bdc7f)
TR#009D  RTK[05]   ALLOCATED | 0x018565a0 | 0x018574b8 |     3864 |         638   | EMMI  (0x34) - WLANSRV_New (0x002c860f)
TR#009E  RTK[05]   ALLOCATED | 0x018574e0 | 0x01857a38 |     1368 |         638   | EMMI  (0x34) - WLANSRV_New (0x002c875d)
TR#009F  RTK[05]   ALLOCATED | 0x01857a60 | 0x018a2ab8 |   307288 |        3733   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#00A0  RTK[05]   ALLOCATED | 0x018a2ae0 | 0x018a3cf8 |     4632 |     2699942   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#00A1  RTK[05]   ALLOCATED | 0x018a3d20 | 0x018a4f38 |     4632 |     2730510   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#00A2  RTK[05]   ALLOCATED | 0x018a4f60 | 0x018a6178 |     4632 |     2730511   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#00A3  RTK[05]   ALLOCATED | 0x018a61a0 | 0x018a73b8 |     4632 |     2730512   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#00A4  RTK[05]   FREE      | 0x018a73d0 | 0x018a7fb8 |     3048 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#00A5  RTK[05]   ALLOCATED | 0x018a7fc0 | 0x018a7ff8 |       56 |      623521   | SDCP1 (0x14) - fcm_ShrinkTable (0x00146c75)
TR#00A6  RTK[05]   ALLOCATED | 0x018a8040 | 0x018a8c78 |     3128 |     2686224   | EMMI  (0x34) - WdgInit (0x0050409d)
TR#00A7  RTK[05]   FREE      | 0x018a8c90 | 0x018a9ed8 |     4680 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#00A8  RTK[05]   ALLOCATED | 0x018a9ee0 | 0x018aa158 |      632 |     2722990   | V24   (0x25) - v24_HapcCreateContext (0x000ca291)
TR#00A9  RTK[05]   FREE      | 0x018aa170 | 0x018aa258 |      232 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#00AA  RTK[05]   ALLOCATED | 0x018aa260 | 0x0196b258 |   790520 |        3685   | EMMI  (0x34) - MAE_CusLoadToMem (0x003814a3)
TR#00AB  RTK[05]   ALLOCATED | 0x0196b280 | 0x019b62d8 |   307288 |     2699909   | EMMI  (0x34) - MaePl_DibCreateSurface (0x002fe0d5)
TR#00AC  RTK[05]   FREE      | 0x019b62f0 | 0x01ffffd8 |  6593768 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#00AD  RTK[05] All heap listed
TR#00AE  RTK[05] =========================== IRAM HEAP/POOL Info ===========================
TR#00AF  RTK[02] IMI Heap
TR#00B0  RTK[02]  Stack Pool Group
TR#00B1  RTK[02]  -------+--------+-------+--------+--------+------
TR#00B2  RTK[02]   POOL  |  SIZE  | TOTAL |  FREE  |  USED  |  MAX
TR#00B3  RTK[02]  -------+--------+-------+--------+--------+------
TR#00B4  RTK[02]                                                                            
TR#00B5  RTK[02] =========================== Heap Usage Histogram ===========================
TR#00B6  RTK[02] Total heap size = 159520
TR#00B7  RTK[02] Total free heap size = 157936
TR#00B8  RTK[02] Total free heap blocks = 1
TR#00B9  RTK[02] Total allocated heap size = 0
TR#00BA  RTK[02] Maximum total allocated heap size = 31232
TR#00BB  RTK[02] Total allocated heap blocks = 0
TR#00BC  RTK[02] Maximum free block size = 157936
TR#00BD  RTK[02]
TR#00BE  RTK[02] Level 1 bitmap = 00000400
TR#00BF  RTK[02] Memory pool overhead = 1584
TR#00C0  RTK[05] ============================= Heap Blocks List =============================
TR#00C1  RTK[05] ------------+------------+------------+----------+---------------+-------------------------------
TR#00C2  RTK[05]    Status   |  Base Addr |  End Addr  |   Size   |   Timestamp   |   task   &   address         
TR#00C3  RTK[05] ------------+------------+------------+----------+---------------+-------------------------------
TR#00C4  RTK[05]   FREE      | 0x1c0116d0 | 0x1c037fd8 |   157960 |           0   | IDLE  (0x00) - AAA_Begin (0x00000000)
TR#00C5  RTK[05] All heap listed

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值