Measuring the Performance of Interactive Applications with Listener Latency Profiling

Conference Paper: PPPJ'08, September, 2008

When Java developers need to improve the performance of their applications, they usually use one of the many existing profilers for Java. These profilers generally capture a profile that represents the execution time spent in each method. The developer can thus focus her optimization efforts on the methods that consume the most time. In this paper we argue that this type of profile is insufficient for tuning interactive applications. Interactive applications respond to user events, such as mouse clicks and key presses. The perceived performance of interactive applications is directly related to the response
time of the program.

In this paper we present listener latency profiling, a profiling approach with two distinctive characteristics. First, we call it latency profiling because it helps developers to find long latency operations. Second, we call it listener profiling because it abstracts away from method-level profiles to compute the latency of the various listeners. This allows a developer to reason about performance with respect to listeners, also called observers, the high level abstraction at the core of any interactive Java application.

We present our listener latency profiling approach, describe LiLa, our implementation, validate it on a set of micro-benchmarks, and evaluate it on a complex realworld interactive application.

@inproceedings{Jovic08, author = {Jovic, Milan and Hauswirth, Matthias}, title = {Measuring the performance of interactive applications with listener latency profiling}, booktitle = {Proceedings of the 6th international symposium on Principles and practice of programming in Java}, series = {PPPJ '08}, year = {2008}, isbn = {978-1-60558-223-8}, location = {Modena, Italy}, pages = {137--146}, numpages = {10}, url = {http://doi.acm.org/10.1145/1411732.1411751}, doi = {http://doi.acm.org/10.1145/1411732.1411751}, acmid = {1411751}, publisher = {ACM}, address = {New York, NY, USA}, keywords = {GUI, latency, listeners, profiling}, }

ACM DL Author-ize service