1.How do i get holding time of a thread on a lock?
I have a sync function. i want to caculate the execution time or holding time on that function. Is it equal to the spin time?
2. I am profiling a java web application on tomcat. But vTune fails to map the java function or lock exactly. Always it shows the libpthread like function. How to correctly profile a java application?