Running Instruments on a Xamarin.Mac application bundle

筅森魡賤 提交于 2019-12-07 10:20:27

问题


@miguel.de.icaza blogged about using Instruments to profile Mac apps built with Mono. However, that blog post was about executables run from the command line, not about .app bundles.

The key point in the above blog post is that the app must be compiled with the AOT switch so that the static symbols are meaningful to Instruments. We've been trying to use the same approach to run Instruments against a Mac .app bundle, and have run into issues.

We've tried running

~/dev/foo/bin/debug> MONO_ENV_OPTIONS="--debug --aot" 
./foo.app/Contents/MacOS/foo

but the app compiles to a .dylib rather than a native executable:

Generating debug symbols: dsymutil /Users/bright/dev/foo/bin/Debug/foo.app/Contents/MonoBundle/foo.exe.dylib

We're unsure how to correctly compile this.

Has anyone managed to get Instruments to work with Xamarin.Mac bundles? This must be a pretty common need.

来源:https://stackoverflow.com/questions/18988498/running-instruments-on-a-xamarin-mac-application-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!