繁体   English   中英

Valgrind内存泄漏报告中的时间戳不正确

[英]Incorrect Time-Stamps In Valgrind Memory Leak Report

我正在大型代码库上运行Valgrind,并带有"--time-stamp=yes"

我需要找出分配每个内存的实际(相对)时间戳

问题:Valgrind报告包含生成泄漏摘要的时间戳记

Steps:

 - Run the codebase for 24 Hours with valgrind [ options
   "--tool=memcheck --leak-check=full --time-stamp=yes"]


 - Terminate the process with "kill -15" after 24 hours, Leak Summary is
   generated.


 - Time-Stamps In Valgrind Report= Time of Leak Report Generation [Not
   the Actual Time at which Memory was Allocated]

是否有任何选择可以使我获得实际的时间戳-分配了泄漏的内存?

谢谢

不,没有,因为没有实时检测到泄漏-实际上没有任何方法可以做到这一点。 而是在程序完成时通过扫描内存来检测它们,以查看仍然可以访问哪些块-已分配但无法访问的任何块都是泄漏。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM