在 Valgrind 中分析 OSx UI 应用程序
我是 OSX 开发新手,我有一个关于在 mac osx 上运行 valgrind 3.6.1 的问题:10.6.8
我试图使用 valgrind 分析 GUI 应用程序;但是,无法从控制台直接启动 GUI 应用程序,可以通过以下方式启动: open MyApplication.app
因此,为了使用 valgrind 检查此应用程序,我执行了 valgrind --trace-children=是的,打开 MyApplication.app
但我仍然无法让 valgrind 来分析应用程序。 (只能获取 open
命令的日志)我是 Mac OSx 新手,可能会遗漏一些明显的东西,有人可以指出我们如何在 Mac 上的 valgrind 中分析 UI 应用程序吗?从 Mac 的查找器中查看时,MyApplication.app
显示为可执行文件。 谢谢。 (因为我还没有在邮件列表上得到回复,所以将其发布在这里)
I am new to OSX development, I had a question regarding running valgrind 3.6.1 on mac osx : 10.6.8
I was trying to analyze a GUI application using valgrind; However, From a console the GUI application cannot be directly launched and can be launched as: open MyApplication.app
So to check this application with valgrind, I executed, valgrind --trace-children=yes open MyApplication.app
but still I couldn't get valgrind to analyze the application. (Could get the logs only for the open
command) I am new to Mac OSx and may be missing something obvious, could somebody pls point out how we can analyze a UI application in valgrind on Mac? The MyApplication.app
is shown as a executable when seen from Mac's finder.
Thanks. (Posting it here since I am yet to get a response on the mailing list)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到解决方案后,我们可以如下分析应用程序:
valgrind MyApplication.app/Contents/MacOS/MyApplication
MyApplication.app 基本上是一个文件夹,其中包含可执行文件和其他资源。
Found the solution, we can analyze the application as follows:
valgrind MyApplication.app/Contents/MacOS/MyApplication
MyApplication.app is basically a folder, which contains the executable and other resources.