我发了一个帖子较早询问有关检查内存泄漏等,我是说我不是熟悉的终端在Linux,但有人对我说,这是容易的valgrind理解的valgrind输出
我设法让它正在运行等,但不确定输出是什么意思。看了一眼,所有人都看起来不错,但是如果可能的话,想要跑过它去体验民众的确认。输出如下
^C==2420==
==2420== HEAP SUMMARY:
==2420== in use at exit: 2,240 bytes in 81 blocks
==2420== total heap usage: 82 allocs, 1 frees, 2,592 bytes allocated
==2420==
==2420== LEAK SUMMARY:
==2420== definitely lost: 0 bytes in 0 blocks
==2420== indirectly lost: 0 bytes in 0 blocks
==2420== possibly lost: 0 bytes in 0 blocks
==2420== still reachable: 2,240 bytes in 81 blocks
==2420== suppressed: 0 bytes in 0 blocks
==2420== Reachable blocks (those to which a pointer was found) are not shown.
==2420== To see them, rerun with: --leak-check=full --show-reachable=yes
==2420==
==2420== For counts of detected and suppressed errors, rerun with: -v
==2420== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 8)
这一切都很好吗?关于我唯一的事情是仍然可以到达的部分。这可以吗?
谢谢大家
或简短的回答 - RTFM – pm100 2010-03-19 18:56:58
如果原始海报不知道手册的位置,这样的答案是没用的。我试图给人们带来怀疑的好处,特别是因为OP至少试图很好地描述这个问题。如果您对某个主题感兴趣,特别是像内存管理这样复杂的内容,那么有时技术文档可能会让您感到压抑,因此他们所需要的只是推动正确的文档。 – mctylr 2010-03-19 20:46:39