[Paper Review] Using High-Rising Cities to Visualize Performance in Real-Time
This paper proposes a real-time, 3D CodeCity visualization to dynamically represent software performance in high-rise cities, where building heights reflect execution time and urban structure maps to code organization. The prototype enables instant detection of performance bottlenecks and memory leaks during runtime, demonstrating improved situational awareness for developers through interactive, spatialized profiling of Java applications.
For developers concerned with a performance drop or improvement in their software, a profiler allows a developer to quickly search and identify bottlenecks and leaks that consume much execution time. Non real-time profilers analyze the history of already executed stack traces, while a real-time profiler outputs the results concurrently with the execution of software, so users can know the results instantaneously. However, a real-time profiler risks providing overly large and complex outputs, which is difficult for developers to quickly analyze. In this paper, we visualize the performance data from a real-time profiler. We visualize program execution as a three-dimensional (3D) city, representing the structure of the program as artifacts in a city (i.e., classes and packages expressed as buildings and districts) and their program executions expressed as the fluctuating height of artifacts. Through two case studies and using a prototype of our proposed visualization, we demonstrate how our visualization can easily identify performance issues such as a memory leak and compare performance changes between versions of a program. A demonstration of the interactive features of our prototype is available at https://youtu.be/eleVo19Hp4k.
Motivation & Objective
- To address the delay and limited structural insight in traditional snapshot-based profilers like VirtualVM and JProfiler.
- To enable real-time performance monitoring during active program execution, especially in GUI-intensive applications like games.
- To improve developer understanding of performance by visualizing code structure and execution dynamics together in a 3D urban metaphor.
- To evaluate the practicality of real-time visualization for detecting performance regressions and thread-related issues during software evolution.
- To explore the scalability and usability of the CodeCity metaphor for performance profiling beyond basic metrics.
Proposed method
- Mapping Java program components (classes, packages) to 3D city elements (buildings, districts) to represent code structure.
- Using fluctuating building heights to represent real-time CPU or memory usage during program execution.
- Integrating live profiling data from a JVM-based application into the visualization engine for dynamic updates.
- Implementing an interactive prototype that allows developers to observe performance changes in response to user interactions or code changes.
- Leveraging the CodeCity metaphor to preserve spatial relationships between components, enhancing awareness of performance hotspots.
- Using case studies to validate the visualization’s ability to detect thread leaks and performance changes across software versions.
Experimental results
Research questions
- RQ1Can a real-time 3D visualization of program execution improve the detection of performance bottlenecks compared to traditional snapshot profilers?
- RQ2How effectively can the CodeCity metaphor reveal structural relationships between code components and their performance behavior?
- RQ3Can the visualization support real-time detection of memory leaks or thread-related issues during interactive application use?
- RQ4How does the dynamic, spatial representation of performance enhance developer understanding during software maintenance and refactoring?
- RQ5What are the practical limitations and scalability of using CodeCity for large or complex software systems?
Key findings
- The real-time visualization enabled immediate detection of a thread leak in a Tetris game prototype, where orphaned threads caused persistent building height fluctuations.
- The prototype successfully visualized performance degradation and improvement across different versions of a software system, supporting version comparison.
- Developers could intuitively perceive performance hotspots by observing which buildings (classes) exhibited the most dramatic height fluctuations during user interactions.
- The visualization provided better contextual awareness of component relationships than traditional bar-chart profilers, which obscure structural context.
- The approach demonstrated practical value in GUI-heavy applications, where real-time feedback during user interaction revealed performance anomalies missed by static profiling.
- The method showed potential for scalability to larger codebases, though visual clutter and performance overhead in multi-threaded environments require further optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.