Heapviz: Interactive Heap Visualization for Program Understanding and Debugging.
Guyer, Samuel Z.
Aftandilian, Edward E.
Kelley, Sean.
Gramazio, Connor.
Ricci, Nathan P.
Su, Sara L.
2010.
-
Understanding the data structures in a program is crucial to understanding how the program works, or why it doesn't work. Inspecting the code that implements the data structures, however, is an arduous task and often fails to yield insights into the global organization of a program's data. Inspecting the actual contents of the heap solves these problems but presents a significant challenge of its ... read moreown: finding an effective way to present the enormous number of objects it contains. In this paper we present Heapviz, a tool for visualizing and exploring snapshots of the heap obtained from a running Java program. Unlike existing tools, such as traditional debuggers, Heapviz presents a global view of the program state as a graph, together with powerful interactive capabilities for navigating it. Our tool employs several key techniques that help manage the scale of the data. First, we reduce the size and complexity of the graph by using algorithms inspired by static shape analysis to aggregate the nodes that make up a data structure. Second, we introduce a dominator-based layout scheme that emphasizes hierarchical containment and ownership relations. Finally, the interactive interface allows the user to expand and contract regions of the heap to modulate data structure detail, inspect individual objects and field values, and search for objects based on type or connectivity. By applying Heapviz to both constructed and real-world examples, we show that Heapviz provides programmers with a powerful and intuitive tool for exploring program behavior.
This is the author's version of the work. It is posted here for your personal use. Not for redistribution. The definitive Version of Record was published in: Aftandilian, Edward E., Sean Kelley, Connor Gramazio, Nathan Ricci, Sara L. Su, and Samuel Z. Guyer. "Heapviz." Proceedings of the 5th International Symposium on Software Visualization - SOFTVIS '10 (2010). doi:10.1145/1879211.1879222.read less - Aftandilian, Edward E., Sean Kelley, Connor Gramazio, Nathan Ricci, Sara L. Su, and Samuel Z. Guyer. "Heapviz." Proceedings of the 5th International Symposium on Software Visualization - SOFTVIS '10 (2010). doi:10.1145/1879211.1879222
- ID:
- p2677705f
- To Cite:
- TARC Citation Guide EndNote
- Usage:
- Detailed Rights