Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace memanalyzer with python script #987

Closed
slaff opened this issue Feb 27, 2017 · 0 comments
Closed

Replace memanalyzer with python script #987

slaff opened this issue Feb 27, 2017 · 0 comments

Comments

@slaff
Copy link
Contributor

slaff commented Feb 27, 2017

The current memanalyzer tool is available on platforms that have .NET support which increases the dependency of external tools and libraries. Because we already have dependency on python (esptool.py depends on it) and it is available on all supported OSes (Windows, FreeBSD, Linux, MacOS X) it would be a good idea to create a python script that produces output as memanalyzer and allows us to do more fine grained calculations as free heap, heap start address, stack start address, available memory space between heap and stack, etc.

#Memory / Section info:
------------------------------------------------------------------------------
   Section|                   Description| Start (hex)|   End (hex)|Used space
------------------------------------------------------------------------------
      data|        Initialized Data (RAM)|    3FFE8000|    3FFE8374|     884
    rodata|           ReadOnly Data (RAM)|    3FFE8378|    3FFEA0B8|    7488
       bss|      Uninitialized Data (RAM)|    3FFEA0B8|    3FFF0F70|   28344 (+8)
      text|            Cached Code (IRAM)|    40100000|    40105D46|   23878
irom0_text|           Uncached Code (SPI)|    40209000|    40244AFA|  244474 (+32)
Total Used RAM : 36716
Free RAM : 45204
Free IRam : 8908
------------------------------------------------------------------------------

Plus we will have consistent output for all supported OSes. As a start we can use PR #753 from @cmarrin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant