How to export and import Memory report in the vscode

Hi,

I am looking for a way to export memory data reports to share for analysis purposes and import them on a new instance of VS Code. I see the ram, rom.json files under the app/build. 

1. Is it possible to have it in a pdf?

2. how to import ram, rom json files in the vscode to revisualise them?  to see like this:

3. if none of the above is possible, can you please describe the best way to share it in a human-readable type

Thank you

Parents
  • Hello,

    1. Is it possible to have it in a pdf?

    You can generate the memory map from https://docs.zephyrproject.org/latest/develop/optimizations/tools.html using -t ram_report or -t rom_report and from there convert it to whatever file format you desire. It will most likely be generated as a .txt by default or simply printed to terminal.

    2. How to import ram, rom json files in the vscode to revisualise them?  to see like this:

    I am not sure if it is possible to import already generated maps to the tool. You can try to build it within the extension and use memory report action. 

    3. if none of the above is possible, can you please describe the best way to share it in a human-readable type

    Can you elaborate this query a bit? 

    Thanks,

    BR

    Kazi

  • Hello,

    You can generate the memory map from https://docs.zephyrproject.org/latest/develop/optimizations/tools.html using -t ram_report or -t rom_report and from there convert it to whatever file format you desire. It will most likely be generated as a .txt by default or simply printed to terminal.

     Yeah I saw this one but it doesn't work actually when you convert it to a txt. you will lose all tab spaces and I don't think so, that file is readable.

    look how it looks like when you convert it to a txt file

    I am not sure if it is possible to import already generated maps to the tool. You can try to build it within the extension and use memory report action. 

    Id like to use this memory report in a presentation(an SS is not a solution) to go deep into details and share it with people who some of them have the vscode but some of them don't. I thought an easy way is to share it in a pdf but if it is not possible, at least they can install the vscode and import it to see. But definitely, they cannot build the project. Can you please ask if you have a solution or feature request for this? 

Reply
  • Hello,

    You can generate the memory map from https://docs.zephyrproject.org/latest/develop/optimizations/tools.html using -t ram_report or -t rom_report and from there convert it to whatever file format you desire. It will most likely be generated as a .txt by default or simply printed to terminal.

     Yeah I saw this one but it doesn't work actually when you convert it to a txt. you will lose all tab spaces and I don't think so, that file is readable.

    look how it looks like when you convert it to a txt file

    I am not sure if it is possible to import already generated maps to the tool. You can try to build it within the extension and use memory report action. 

    Id like to use this memory report in a presentation(an SS is not a solution) to go deep into details and share it with people who some of them have the vscode but some of them don't. I thought an easy way is to share it in a pdf but if it is not possible, at least they can install the vscode and import it to see. But definitely, they cannot build the project. Can you please ask if you have a solution or feature request for this? 

Children
Related