How to calculate how many times a function runs?????
Hi all:
I have a function in a kernel module and I want to see how many times it is called and runs per second. I add a counter in the function so once it runs, counter+=1; is there any timer or something which can check this counter every second???Thanks very much.
Last edited by neyshule; 09-25-2011 at 01:04 AM.
Reason: not precise
|