免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1193 | 回复: 0
打印 上一主题 下一主题

MEMWATCH.log for test.c [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-06 13:23 |只看该作者 |倒序浏览
============= 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:  test.c(62), 200 bytes alloc'd at  test.c(60)
relink:  test.c(66) attempting to repair MW-0x8051390...
relink: MW-0x8051390 is the head (first) allocation
relink: successful, no allocations lost
assert trap:  test.c(69), 1==2
Stopped at Tue Jan  6 13:15:21 2009
unfreed:  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 文档。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78225/showart_1777136.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP