file : main.c
to run dmalloc I have done the following step.
1) gcc -ldmalloc -o test main.c
2) function dmalloc { eval command dmalloc -b $*
; }
dmalloc -l logfile -i 100 low
3) ./test
where will I get the result?
Even i could not get the logfile.
make sure that your environment actually contains the DMALLOC_OPTIONS variable before running the program. Different shells may be different with the eval. Make sure you actually do a malloc in your test program, else it may not have initialized properly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.