Try using a profiler. Jprofiler is paying material buth quite good i can say !! Jboss has its profiler that can be used in an eclipse environment. These profilers give you exact and if you like verbose information. These infos include the time spend on each method. Most often this implies you to install an agent on the running vm and retrieve the data with the client-profiler.
Look at the date on the question you're answering. It's over a decade old! And while it's very unfortunate that no one answered it, by now, Karthik probably has moved on to other employers 2 or 3 times (or more, considering how disposable people are these days), and quite possibly may no longer even be a software developer.
We call threads that have been re-opened months or years after the discussion has closed "Zombie threads". We appreciate the effort, you've made, and we look forward to having you here, but I'm afraid you're too late for this one.
Science is the process of replacing what we "know" with what is TRUE. Politics, alas, often prefers to be the opposite.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop