Listener latency profiling: Measuring the perceptible performance of interactive Java applications

Listener latency profiling: Measuring the perceptible performance of interactive Java applications
Related tools & artifacts:
Journal Paper: Science of Computer Programming, November, 2011

When developers need to improve the performance of their applications, they usually use one of the many existing profilers. 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 microbenchmarks, and evaluate it on a complex real-world interactive application. We then perform case studies where we use LiLa to tune the perceptible performance of two interactive applications, and we show that LiLa is able to pinpoint performance problems even if their causes are embedded in the largest interactive Java application we are aware of.

@article{Jovic11, author = {Jovic, Milan and Hauswirth, Matthias}, title = {Listener latency profiling: Measuring the perceptible performance of interactive Java applications}, journal = {Sci. Comput. Program.}, issue_date = {November, 2011}, volume = {76}, issue = {11}, month = {November}, year = {2011}, issn = {0167-6423}, pages = {1054--1072}, numpages = {19}, url = {http://dx.doi.org/10.1016/j.scico.2010.04.009}, doi = {http://dx.doi.org/10.1016/j.scico.2010.04.009}, acmid = {1998910}, publisher = {Elsevier North-Holland, Inc.}, address = {Amsterdam, The Netherlands, The Netherlands}, keywords = {Event-based applications, Latency, Listeners, Profiling}, }