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)):
- NOC/LOC of classes and their methods, constructors, and fields
- NOC/LOC of interfaces and their method declarations and fields
- NOC/LOC of aspects and their methods, constructors, and fields, pointcuts, advice, and inter-type declarations
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.