public final class PerfTrack
extends Object
PerfTrack tracks performance through multiple operations within
a Thread. Functionally it works with static method calls, that can
be called from anywhere within the code. Primary methods are start/stop -
which adds a tracking of the performance (or wall clock time) it takes
to execute the operation in question.
The PerfTrack builds a tree-like structure showing the amounts of time taken
for each sub-operation.
This will be useful in tracking performance issues in the web application,
and the tree based performance output allows us to focus in rapidly on
problem areas of the code and its interactions with external system.
This code was Modelled on the Log4J MDC (Mapped Diagnostic Context).
- Author:
- Paul Bemowski