I have to measure the time (and memory) spend in any methods of my Java project.
I have read about several method to obtain these data. I can instrumentalized the methods. I thought to use JUnit (because I have developed several test for the project). However, I read that it does not provide the exact spend time, and I need a more concrete function that using a timeout limit. I have already used JMX in other projects, os I thought to use too.
However, I would like use a framework based on tags (like JUnit) to measure the time and the memory, but I did not find any. So, anyone know anything about this? I understand that using this way (I could have a delay).