[slf4j-user] Visibility of org.slf4j.profiler.TimeInstrumentStatus

Marc Heinz mhz4248 at gmail.com
Wed Jun 19 13:09:35 CEST 2013


Hello everyone,

I'm trying to use the Profiler API to monitor a pair of task. At the end of
each task, I would like to get the non-cumulated elapsed time (ie. only the
time consumed for the said task).

So far the only way I've found is to analyze the profiler child instruments
to get the required information. This is relatively trivial, except for one
thing: TimeInstrumentStatus is package-private, even if
TimeInstrument.getStatus() is public.

Any idea why? This is not absolutely critical for my needs, but would it be
interesting to fill a bug report on this?
Or does someone have another idea on how to get the same information? (the
time-elapsed for the last stopped time instrument?)

Thanks!
Marc H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20130619/ed2174a2/attachment.html>


More information about the slf4j-user mailing list