Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1264694
  • 博文数量: 404
  • 博客积分: 10011
  • 博客等级: 上将
  • 技术积分: 5382
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-03 16:29
文章存档

2010年(40)

2009年(140)

2008年(224)

我的朋友

分类: LINUX

2009-01-06 13:23:50

============= 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) |
给主人留下些什么吧!~~