JQuantify is a Java package providing lightweight statistics describing the frequency and duration of application-specific events. Developers use a simple API to insert count-points or start/stop boundaries at appropriate places within their system.
EventCounter objects are used to count occurrences of events of interest to the application. In addition to the cumulative count, an EventCounter object can provide frequency statistics including overall frequency, current frequency, peak frequency, and the time at which the peak occurred.
SessionCounter objects count application events that have distinct start and stop points and therefore a measurable duration. In addition to the frequency statistics provided by EventCounter, statistics are available on demand for mean and maximum session duration. Overlapping, or concurrent, sessions for a particular SessionCounter are supported, with current and peak levels of concurrency available.
JQuantify is designed for use within production applications, not merely during debugging and optimization. The algorithms are very efficient, using only negligible CPU and memory resources.
More information regarding the 3.3 release is available at http://jquantify.sourceforge.net