[英]Incorrect Time-Stamps In Valgrind Memory Leak Report
I am running Valgrind over a large code-base, with "--time-stamp=yes"
我正在大型代码库上运行Valgrind,并带有"--time-stamp=yes"
I need to find out the ACTUAL (Relative) TIMESTAMPS at which each Memory was Allocated 我需要找出分配每个内存的实际(相对)时间戳
Problem: Valgrind Report contains the Time-Stamps at which Leak Summary is generated 问题: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]
Is there any option thorough which I can get the ACTUAL TIMESTAMPS -- at which Leaked Memory was Allocated ? 是否有任何选择可以使我获得实际的时间戳-分配了泄漏的内存?
Thanks 谢谢
No, there isn't, because leaks are not detected in real time - there isn't really any way to do that. 不,没有,因为没有实时检测到泄漏-实际上没有任何方法可以做到这一点。 Instead they are detected by scanning memory when the program finishes, to see what blocks are still reachable - anything which has been allocated but is not reachable is a leak. 而是在程序完成时通过扫描内存来检测它们,以查看仍然可以访问哪些块-已分配但无法访问的任何块都是泄漏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.