I have a daemon type process that handles transactions. The transactions typically completes in less than a second. I would like to find out the CPU usage of the transactions. I am looking for something that allow me to watch the CPU usage of a process so that I can look for a spike when the transaction happens.
Regular monitoring tools do not go down to sub-second granularity and cannot track specific process. Is there any Dtrace script for the job?