Re: memprof



Martin Oberzalek <oberzalek@chello.at> writes:

> How I have to use memprof?
> 
> I wanted to test memprof, so I wrote that programm.
> 
> #include <glib.h>
> 
> int main()
> {
>   gchar *word;
> 
>   word = g_strdup("Hallo\n");
>   g_print(word);
>   
>   return 0;
> }
> 
> I compiled it: "gcc -o mptest mptest.c -g -Wall -pg -lglib"
> 
> So I ran memprof, run command, ...
> and now memprof does nothing. It react, yes. It needs CPU time, yes it
> seem to be that memprof works.
> 
> Did I made a fault, or is that always like that?
> Will memprof come to an end?
> 

memprof need your program to be alive in order to issue a warning 
for a given memory leak...


-- 
                   -- Yoann,  http://www.security-addict.org
     It is well known that M$ products don't call free() after a malloc().
     The Unix community wish them good luck for their future developments.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]