VS Code - Size Analysis

User avatar
gunar.kroeger
Posts: 143
Joined: Fri Jul 27, 2018 6:48 pm

VS Code - Size Analysis

Postby gunar.kroeger » Mon Mar 16, 2020 12:55 pm

This looks nice, but should I change something to get it working?
108KB/20KB doesn't feel right.
sizeanalysis.png
sizeanalysis.png (33.15 KiB) Viewed 11501 times
"Running was invented in 1612 by Thomas Running when he tried to walk twice at the same time."

User avatar
ESP_Soumesh
Posts: 19
Joined: Tue Jul 09, 2019 2:21 pm

Re: VS Code - Size Analysis

Postby ESP_Soumesh » Fri May 15, 2020 8:00 am

Could you maybe post the output for

Code: Select all

$ python $IDF_PATH/tools/idf_size.py build/{app_name}.map --json
app_name is your app name here
Also please provide your OS, IDF Version, VSCode Version and VSCode Extension Version (can be found in the installed extension page)

User avatar
gunar.kroeger
Posts: 143
Joined: Fri Jul 27, 2018 6:48 pm

Re: VS Code - Size Analysis

Postby gunar.kroeger » Fri May 15, 2020 9:42 pm

I'm on windows 10, IDF 4.0, Extension version 0.2.1, vscode 1.45.0.

This happens to everyone on different PCs with the same big project we are working on.
Trying out different projects gives different results for the maximum DRAM and IRAM available, which makes no sense to me.
I'm compiling for the esp32-pico
Annotation 2020-05-15 183503.png
Annotation 2020-05-15 183503.png (49.05 KiB) Viewed 7911 times
"Running was invented in 1612 by Thomas Running when he tried to walk twice at the same time."

User avatar
ESP_Soumesh
Posts: 19
Joined: Tue Jul 09, 2019 2:21 pm

Re: VS Code - Size Analysis

Postby ESP_Soumesh » Tue Jun 16, 2020 12:00 pm

As you can see in the Json Data you've posted ... there are some issue

available_iram: 13439
used_iram: 117633

Which is causing this issue... Will discuss this further with colleagues from IDF and see why this issue is happening?

User avatar
ESP_Roland
Posts: 237
Joined: Tue Oct 09, 2018 10:28 am

Re: VS Code - Size Analysis

Postby ESP_Roland » Tue Jun 16, 2020 12:25 pm

Hi gunar.kroeger,

is it possible to share with us your MAP file? Note that it might contain sensitive information if it is a commercial project with closed source. In that case are you able to reproduce the issue with some other project (eg. IDF example)?

Do you get the same values with idf_size.py from the IDF master branch? (can be tested in console and no need to rebuild the project)

The MAP file is parsed by idf_size.py and it is possible that your project contains some unexpected organization of the segments there.

boarchuz
Posts: 559
Joined: Tue Aug 21, 2018 5:28 am

Re: VS Code - Size Analysis

Postby boarchuz » Tue Jun 16, 2020 12:39 pm

Are they not simply showing used/free instead of the expected used/total? The bars should be using the ratio values or used/(used+available) instead.

It would also be great to have the total_size front-and-centre in this view.

User avatar
ESP_Soumesh
Posts: 19
Joined: Tue Jul 09, 2019 2:21 pm

Re: VS Code - Size Analysis

Postby ESP_Soumesh » Tue Jun 16, 2020 1:41 pm

boarchuz wrote:
Tue Jun 16, 2020 12:39 pm
Are they not simply showing used/free instead of the expected used/total? The bars should be using the ratio values or used/(used+available) instead.

It would also be great to have the total_size front-and-centre in this view.
Correct will fix this behaviour, same can be tracked https://github.com/espressif/vscode-esp ... issues/128

Who is online

Users browsing this forum: No registered users and 13 guests