I want to measure the performance of a program which is compiled into a .class file. I do not access to the code to add stopwatch methods to it. Thank you.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can:
use a profiler
call this Java code from another class, which you can write. You can access Java methods inside
.classfile without having the source codedecompile the
.classfile, inject watches and compile backuse compile- or load-time weaver and AOP to weave watches to existing classes (essentially does the same thing as above)