内存碎片事件探查器 [英] Memory Fragmentation Profiler

查看:201
本文介绍了内存碎片事件探查器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么好看的内存碎片剖析? (linux的gcc版本将是很好)。因为它使用自定义的malloc / free函数Valgrind的不能分析这一点。

Are there any good memory fragmentation profilers? (linux gcc version would be nice). Valgrind cannot analyze this because it uses custom malloc/free functions.

谢谢,
安德鲁

Thanks, Andrew

推荐答案

我将开始与命令mtrace 。当你有一丝的glibc自带的Perl脚本命令mtrace(1)发现泄漏。然而,跟踪格式很容易理解,因此它应该是简单的过程变成碎片的分析这个。

I would start with mtrace. When you have a trace, glibc comes with a perl script mtrace(1) which finds leaks. However, the trace format is easy to understand, so it should be straight-forward process this into fragmentation analysis.

这篇关于内存碎片事件探查器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆