Analyzing and visualizing performance of memory hierarchies