Question

I want to profile a MonoTouch application in Instruments without an iPad. I am able to profile an app compiled for Simulator but it's no fun without the symbols:

Missing symbols

There is no option to generate IPA with dSYM in project build settings—looks like they're only available when compiling for the device.

Can't generate dSYM

All I want is a MonoTouch-aware dSYM for Simulator.
Is this possible?

Was it helpful?

Solution

This is unfortunately not possible, because in the simulator we JIT managed code. This means that it is not possible to know before executing the process where methods will be in memory, and Instruments doesn't support the required mechanisms for MonoTouch to inform about JIT'ed methods at runtime [1].

[1] See last comment on the response here: Is it possible to notify DTrace on Mac OS X of dynamically generated code?

OTHER TIPS

Take a look at this - miguel wrote a blog post recently to compile aot for profiling on mac - I think this will give you what you're looking for:

Using Instruments to profile Mac apps built with Mono

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top