[dtrace-discuss] Understand the dtrace quantize output

RAMASUBRAMANIAN Srikant
Wed, 05 Jan 2011 16:47:24 -0000

Hi,



I am kind of new to DTrace , I have written a script to time function calls
in our application library ,



Wanted to know how to interpret the output from quantize of the elapsed time
in each function call  , here is a sample



Here is the entry and return function for the library that is being traced



pid$1:libswduar::entry

{

        duarEntry[probefunc] = timestamp;

        @duarCount[probefunc] = count();

}

pid$1:libswduar::return

{

        this->elapsed = (timestamp - duarEntry[probefunc])/1000000;

        @totduarTime[probefunc] = quantize(this->elapsed);

        duarEntry[probefunc] = 0;

}



LdapSearchRequest



           value  ------------- Distribution ------------- count

              -1 |                                         0

               0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@      147

               1 |                                         0

               2 |                                         0

               4 |                                         0

               8 |                                         0

              16 |                                         0

              32 |                                         0

              64 |                                         0

             128 |                                         0

             256 |                                         0

             512 |                                         0

            1024 |                                         0

            2048 |                                         0

            4096 |                                         0

            8192 |                                         0

           16384 |                                         0

           32768 |                                         0

           65536 |                                         0

          131072 |                                         0

          262144 |                                         0

          524288 |                                         0

         1048576 |                                         0

         2097152 |                                         0

         4194304 |                                         0

         8388608 |                                         0

        16777216 |                                         0

        33554432 |                                         0

        67108864 |                                         0

       134217728 |                                         0

       268435456 |                                         0

       536870912 |                                         0

      1073741824 |                                         0

      2147483648 |@@@@@                                    21

      4294967296 |                                         0



Thanks & Regards

Srikant Ramasubramanian
SWIFTNet Link

Tel: + 1(703) - 365- 6117

Fax: +  1(703) - 365 - 6410

Company name (e.g. ''S.W.I.F.T. SCRL'' for users in BE)

 <http://www.swiftcommunity.net/>
http://www.swift.com/temp/63340/97961/swiftcommunitybutton.gif

This e-mail and any attachments thereto may contain information which is
confidential and/or proprietary and intended for the sole use of the
recipient(s) named above. If you have received this e-mail in error, please
immediately notify the sender and delete the mail. Thank you for your
co-operation. SWIFT reserves the right to retain e-mail messages on its
systems and, under circumstances permitted by applicable law, to monitor and
intercept e-mail messages to and from its systems. Please visit
www.swift.com for more information about SWIFT.



-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20110105/0c91ef92/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 5953 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20110105/0c91ef92/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5043 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20110105/0c91ef92/attachment-0001.bin>