How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
there is no specific information was output after compiling .
How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
-
- Posts: 263
- Joined: Sun Jun 19, 2016 12:00 am
Re: How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
You can check heap like this:
To find out if you can reduce the FreeRTOS stack size of the currently executing task to free some memory you can query the high watermark like this:
I never ran into code size limitations with the 4MB of flash, so I don't know how to help with that.
Code: Select all
ESP_LOGI(TAG, "RAM left %d", esp_get_free_heap_size());
Code: Select all
ESP_LOGI(TAG, "task stack: %d", uxTaskGetStackHighWaterMark(NULL));
Re: How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
Don't forget your 32bit aligned free space. xPortGetFreeHeapSizeTagged(MALLOC_CAP_32BIT)
VisualGDB gives you a memory utilization report after building your project. Which lists your used DATA_FLASH, INSTR_FLASH, INSTR_RAM and DATA_RAM. No idea how they do this though.
VisualGDB gives you a memory utilization report after building your project. Which lists your used DATA_FLASH, INSTR_FLASH, INSTR_RAM and DATA_RAM. No idea how they do this though.
Re: How to check current project's the resource(RAM, TEXT,HEAP etc.) usage statistics,
xtensa-esp32-elf-size build/app-name.elf maybe?
Who is online
Users browsing this forum: Majestic-12 [Bot] and 381 guests