memtab_visualizers.memmap_report module

Memory Map Report class for memtab visualizers.

class memtab_visualizers.memmap_report.MemmapReport

Bases: object


A class that generates memory map visualizations based on analysis results.

The MemmapReport class creates interactive memory map visualizations using the Plotly library, showing the memory layout of code from a Memtab object. It can display memory maps based on either categories or ELF sections.

generate_report(memtab, filename)

This function generates a memory map visualization based on the analysis results. It uses the Plotly library to create the memory map and saves it as an HTML file. The memory map provides a visual representation of the memory layout of the code. The function first determines whether to use category-based or section-based memory mapping. It then iterates through the unique categories or sections and creates scatter plots for each region. The scatter plots represent the memory regions, symbols, and extra space between symbols.

Return type:

None

Args:

response (DataFrame): _description_ html (str): the html filename. this gets prepended with category_memmap_ or section_memmap_ depending on the category_based flag. category_based (bool, optional): _description_. Defaults to False. If True, the memory map is based on categories. If False, it is based on sections.

report_name = 'memmap'