Gautam Gopalakrishnan wrote:
> I am talking about a userland application which does database queries.
> To simplify, let's say main() calls A(). Sometimes A takes too long to
> return, so I want to know what parameters were passed (maybe the query
> is too broad or inefficient).

So far, it sounds like what you're looking for is simply a good old 
fashioned debugger.  For example, "mdb -p <pid>" will attach to the 
process of choice and stop it, and "$c" will print a stack backtrace.

-Seb
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to