【问题标题】:What is the equivalent of Valgrind within the Xcode environment?Xcode 环境中的 Valgrind 等价物是什么?
【发布时间】:2011-07-22 20:21:03
【问题描述】:

最近有人建议我在我的 iPhone 项目(主要用 C 和 Objective-C 编写)中使用 Valgrind 来检查内存泄漏、错误等。

我对这种工作还很陌生,想知道 Xcode 中有哪些工具可以达到同样的目的。

非常感谢

【问题讨论】:

    标签: xcode memory memory-management memory-leaks valgrind


    【解决方案1】:

    如果您想检查内存泄漏,那么您可以使用性能工具运行您的项目并进行泄漏。按照屏幕截图。

    【讨论】:

    • 查看 Davbid 的回复
    【解决方案2】:

    http://landonf.bikemonkey.org/code/iphone/iPhone_Simulator_Valgrind.20081224.html

    Xcode 的“Leaks”工具与 Valgrind 不同。除了检测内存泄漏之外,Valgrind 还检测覆盖内存边界(以及其他事情)。

    【讨论】:

    • 链接已失效。链接的要点是什么?
    猜你喜欢
    • 1970-01-01
    • 2011-08-29
    • 2014-05-08
    • 2014-06-12
    • 1970-01-01
    • 2022-11-28
    • 2021-06-19
    • 2012-07-20
    • 2023-03-30
    相关资源
    最近更新 更多