嵌入式系统中进程的内存泄漏或消耗问题
如果我们想要调试进程的内存相关问题,那么我们必须使用 Valgrind 启动该进程。是否有其他工具可以用来分析嵌入式系统中已经运行的进程? 例如,嵌入式系统将在启动时启动一个进程。进程的内存消耗逐渐增加。我不想用 Valgrind 终止并启动进程,我想检查现有进程。有什么工具可以在这里提供帮助吗? 我认为我们可以尝试使用 /proc/pid/maps
,但不确定如何理解 /proc/pid/maps
文件中的匿名分配。
If we want to debug memory-related issues of a process then we have to start the process using Valgrind. Are there any other tools using which we can analyze a process that is already running in the embedded system?
For example, a process will be started by the embedded system on bootup. The memory consumption of the process is increasing gradually. I don't want to kill and start the process with Valgrind, I want to inspect the existing process. Are there any tools that can help here?
I think we can try with /proc/pid/maps
, but not sure how we can understand the anonymous allocations in /proc/pid/maps
file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论