ajdtstats: A Statistics Collector for AspectJ


Latest Version 0.0.5 (Feb 26, 2007)

Introduction

ajdtstats is a tool for collecting statistics on extensions in AspectJ programs, built on top of AspectJ Development Tools (AJDT). It was developed to explore how aspects are being used in current AspectJ projects. Currently, it searches for homogeneous advice (i.e., advice that extends multiple join points) and shared join points (i.e., join points extended by more than one piece of advice).

Howto

After installation you can open the "Result View" of ajdtstats from Eclipse Window menu (Window - Show View - Other - AjdtStats Category - Result View). This opens a new view with an "i" button. This button collects the statistics.

Before collecting any statistics make sure to recompile the project (Eclipse Menu: Project - Clean - Clean selected).

After collecting statistics you should see a tree like this:

In the first section you see all shared join points, starting with the number of applied advice and a description of this join point. Below this, there is the same list for homogeneous advice stateing the number of extended join points (including conditional extensions). Finally, there are statistics for the number of overall extended join points (i.e., the number of all shared and not shared join points that were extended) and the number of overall extensions (i.e., the number of pieces of advice that have been applied at at least one join point).
Other statistics are currently deactivated.

By double clicking the entries you can jump directly to the source code of the shared join point or homogeneous advice. In combination with the "Cross References" View from AJDT (enable "Link with selection") it is also possible to quickly find all join points for the selected homogeneous advice or all advice statements for the selected shared join point.

Download

Source code can be requested from the developers per mail.

Contact

ajdtstats was developed at the University of Magdeburg, Germany and the University of Texas at Austin. For information about the ajdtstats project, please contact the development team via kaestner (at) iti.cs.uni-magdeburg.de.

ajdtstats Project Members:

  • Christian Kästner (Otto-von-Guericke University, Magdeburg, Germany)

For more statistics see also AJStats