Allows metrics to be recorded. Currently only timings are supported, but other metrics
may be supported in the future. Use the startPhase method to start recording a timing
and the finishPhase method to finish recording it. If timings are nested the
hierarchy is preserved.
Note: this class is intended to be used in a thread-local context, and therefore it is not
thread-safe. Do not attempt to call it concurrently from multiple threads!
Allows metrics to be recorded. Currently only timings are supported, but other metrics may be supported in the future. Use the
startPhase
method to start recording a timing and thefinishPhase
method to finish recording it. If timings are nested the hierarchy is preserved.Note: this class is intended to be used in a thread-local context, and therefore it is not thread-safe. Do not attempt to call it concurrently from multiple threads!