Open zekageri opened 7 months ago
Hi @zekageri, any chance you could share your project to reproduce the issue?
Unfortunately i can't and it also is a massive app. I can try to build a small project and hope it triggers it.
I can try to build a small project and hope it triggers it.
Would be great.
Well, i was able to inspect only the RAM usage
But this is obviously not true.
I had to add this flag debug_build_flags = -Os
to my ini file and i had to uncheck the "Check Code" toggle.
If it is checked it will never finish. I will give it another try. Will let it sit for hours and see what it will do.
Just some questions
Does PIO inspect sees the external ram? My ini file contains the board definition and some EXT ram build flags. Does PIO calculate malloc and new when inspecting?
Will let it sit for hours and see what it will do.
It shouldn't take that long. How many files does your project contain?
Does PIO inspect sees the external ram?
PIO analyzes your firmware section by section. In a nutshell, if a symbol is located in a section that occupies memory during app execution then it will considered as RAM.
Does PIO calculate malloc and new when inspecting?
Unfortunately, it doesn't. Unlike the static memory allocation, the dynamically allocated memory (in your case the memory allocated via malloc
) can vary based on application requirements at the runtime, so a more complex instruments like Valgrind are required.
It shouldn't take that long. How many files does your project contain?
Well, I don't know. A lot. A rough estimate is (37 * 2) 74 if each folder contains at least two files. But some folders contains more than 3-4 files so give or take.
Thank you for the info. I will try to create a smaller project and see what it does.
The unknown
217 kb file is really strange to me btw... It is probably some Espressif content.
Will check Valgrind too! Thanks for the tip!
Hi! I wanted to analyse my codebase with Inspect.
I had an error at the first inspection which said that my program is bigger than it can be. Which is strange because i can upload it fine. After some research i found out that it built the project in debug mode therefore it is a lot bigger. So i added a line into my ini file to optimise the debug build.
debug_build_flags = -Os
Now if i Inspect it again, it does not produce an error but stuck at 100% and it seems like it will never finish.
I'm using an ESP-wrover-E with 16mb flash and 8mb psram. I'm using a lot of malloc in my project to fully use the external ram as i can.
What can i do to make the Inspection work?
I will also try the following build flags in the ini file after i waited long enough for the Inspection to finish... ( I suspect it never will )
Here is my current ini file