Hi,

I need help in calculating Java method time-stamp in following fashion.
Consider following method example.

long method3(long stop) {
        try {
            Thread.sleep(1500);
        } catch (Exception e) {

        }
//////////////////// real CPU intensive operation ///////////////////////////
       for (int i = 1; i < stop; i++) {
           stop = stop * stop * i;
        };
        return stop;
    }
  
For above method, I can get time-stamp by using "vtimestamp" and 
method-entry/return probes.
But I also want to how much time it is spending as idle ( in above case 1500 
ms) and how much in real CPU intensive operation.

Is there any way to do this?
Help appreciated.

Thanks,
Ajit
-- 
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
[email protected]
  • [dtrace-discus... Ajit Bansode
    • Re: [dtra... krishnan parthasarathi - Sun Microsystems - Bangalore India
      • Re: [... Ajit Bansode
        • R... krishnan parthasarathi - Sun Microsystems - Bangalore India
      • Re: [... Keith McGuigan
        • R... Ajit Bansode
          • ... Ajit Bansode
            • ... krishnan parthasarathi - Sun Microsystems - Bangalore India
              • ... krishnan parthasarathi - Sun Microsystems - Bangalore India
            • ... Pramod Batni
              • ... Ajit Bansode

Reply via email to