I wanted to know, how can achieve how much time a function takes to execute and what is the memory size of that particular function.
The code to be profiled is in C.

Thank you.