[EMAIL PROTECTED] forced the electrons to say:
> Hi,
> 
> Is there any way to find out, how much memory is being used up, when
> a particular function is invoked. Awaiting your valuable suggestions
> 
> Thanks in advance
> sudheer

Hi,

That is gprof there for. Compile your program with the -pg option to gcc, then
run it. This will create a file called gmon.out in the CWD. Then just run the
program gprof and you will get the entire profiling information about the
execution of your program.

Binand
-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!

PGP signature

Reply via email to