============= MEMWATCH 2.71 Copyright (C) 1992-1999 Johan Lindh =============
Started at Tue Jan 6 13:15:16 2009
Modes: __STDC__ 32-bit mwDWORD==(unsigned long)
mwROUNDALLOC==4 sizeof(mwData)==32 mwDataSize==32
statistics: now collecting on a line basis
Hello world!
underflow: <5> test.c(62), 200 bytes alloc'd at <4> test.c(60)
relink: <7> test.c(66) attempting to repair MW-0x8051390...
relink: MW-0x8051390 is the head (first) allocation
relink: successful, no allocations lost
assert trap: <8> test.c(69), 1==2
Stopped at Tue Jan 6 13:15:21 2009
unfreed: <3> test.c(59), 20 bytes at 0x80511dc {FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE ................}
Memory usage statistics (global):
N)umber of allocations made: 4
L)argest memory usage : 220
T)otal of all alloc() calls: 530
U)nfreed bytes totals : 20
Memory usage statistics (detailed):
Module/Line Number Largest Total Unfreed
test.c 4 220 530 20
64 1 100 100 0
60 1 200 200 0
59 1 20 20 20
57 1 210 210 0
使用的方法也十分简单!参照包中的 README 文档。
阅读(1068) | 评论(0) | 转发(0) |