in memory_analyzer/memory_analyzer.py [0:0]
def view(filename):
"""
Tool for viewing the output of the memory analyzer. Launches a UI.
Argument:
FILENAME: The filename of the snapshot to view.
"""
try:
pages = frontend_utils.get_pages(filename)
except pickle.UnpicklingError as e:
frontend_utils.echo_error(f"Error unpickling the data from {filename}: {e}")
sys.exit(1)
frontend_utils.initiate_curses(pages)