B
Boris Gorjan
Is there a library available for purposes of timing?
I was thinking of something like timing4j (as in log4j) solving timing "issues"
in a "generic" way, initializable, like log4j, with a properties file
(specifying "registered" calling methods, threads, class loaders, how the data
is exported, etc.).
Example:
public void myMethod(Object myArg) {
try {
Timing.start();
// my code
}
finally {
Timing.end();
}
}
Timing would then accumulate timing data for this particular method: when the
method was called and how long the execution lasted. Timing would also be able
to export so gathered data in different ways: grouped by
1. Calling method (some method that calls myMethod)
2. Calling thread from within which the clling method calls myMethod.
3. Calling thread's ClassLoader.
4. ?
Averages, deviations and other statistical sugar would also be nice.
Does anyone know of (or uses) such a library?
I was thinking of something like timing4j (as in log4j) solving timing "issues"
in a "generic" way, initializable, like log4j, with a properties file
(specifying "registered" calling methods, threads, class loaders, how the data
is exported, etc.).
Example:
public void myMethod(Object myArg) {
try {
Timing.start();
// my code
}
finally {
Timing.end();
}
}
Timing would then accumulate timing data for this particular method: when the
method was called and how long the execution lasted. Timing would also be able
to export so gathered data in different ways: grouped by
1. Calling method (some method that calls myMethod)
2. Calling thread from within which the clling method calls myMethod.
3. Calling thread's ClassLoader.
4. ?
Averages, deviations and other statistical sugar would also be nice.
Does anyone know of (or uses) such a library?