whocalls(1)

NAME
whocalls - trace the amount of time spent in each function call

SYNOPSIS
whocalls [ -s ] [ -l wholib ] funcnamelist executable [executable arguements ...]

AVAILABILITY

SUNWosdem

DESCRIPTION
whocalls is a simple example of a Link-Auditing library which permits the tracking of the calling of a given function. funcnamelist is a is a colon sperated list of function of function names. The executable is run as normal and each time a procedure in the funcnamelist is called the arguements to that procedure and a stack trace are displayed on standard output.

OPTIONS

-s  when available also examine the .symtab for local symbols when displaying a stack trace. While more detailed this is a much more expensive operation. -l wholib specify an alternate who.so Link-Auditing library to use.

EXAMPLES
This examples tracks the calls to printf() made by a simple hello_world program

% whocalls printf hello
printf(0x106e4, 0xef625310, 0xef621ba8)
        hello:main+0x10
        hello:_start+0x5c
hello
%

SEE ALSO
ld.so.1(1)