I need some thing like a Python decorator. I need to store some information, specifically the method called, its start time, its end time, and its arguments. I cannot import anything outside of Java 1.5 libraries. Is there some thing like what is available in Python?
Good tracing tool for Java is BTrace.
You can try some profiler using Java Management Extensions or java agent.
See http://java.sun.com/developer/technicalArticles/releases/j2se15/#mnm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With