AJStats: A Statistics Collector for AspectJ


Latest Version 0.1 (Sep 7, 2006)

Introduction

AJStats is a tool for collecting statistics of AspectJ programs. It was developed to explore how aspects are being used in current AspectJ projects. Currently, AJStats collects a set of basic statistics about the usage of classes, interfaces, and aspects, as well as their structural elements (measured in number of occurences (NOC) and lines of code (LOC)):

For using AJStats download the binaries in the download section. AJStats in invoked as follows:
java -cp <AJSTATS_PATH>/ajstats.jar build/AspectJCollector <DIRECTORY_TO_ANALYZE>
AJStats expects one or more directories and/or a set of files to analyze, e.g.:
java -cp ~/tools/ajstats/ajstats.jar build/AspectJCollector Socket Message Utils/*.aj

For more statistics see also AJDTStats.