How do I configure my application to be profiled by Instruments?
Does it work using the simulator... or the actual device?
Any information would be greatly appreciated.
Thanks,
Ron
Check out the Xamarin profiling documentation(http://ios.xamarin.com/Documentation/Profiling). You can use Instruments on both the device and the simulator depending on what you select in Instruments. However, according to the Xamarin docs, profiling only works for MonoTouch apps on the device.
Related
I'm making app with using Xamarin.forms (PCL project).
I'm making app like FITBIT and its wearable device.
I'm using nrf51822 MCU from Nordic.
Someone has done lots of work for syncing with ble device for Xamarin.Forms and fortunately it's working great.
Now, I need to use DFU OTA library to support firmware-update for users.
Nordic provided great examples and source code.
dfu lib for iOS : https://github.com/NordicSemiconductor/IOS-DFU-Library
full project(iOS) : https://github.com/NordicSemiconductor/IOS-nRF-Toolbox
dfu lib for Android : https://github.com/NordicSemiconductor/Android-DFU-Library
And How can I convert this library for using it on Xamarin?
What documents or technique should I look?
Any tips will help me. (It might be lots of pain?)
Thanks.
Nordic says they didn't even start to look Xamarin, So there are only three guys(including me) are looking for these binding project.
discusion here : https://forums.xamarin.com/discussion/comment/214516
you can read this documentation Xamarin.Android supports the use of native libraries via the standard PInvoke mechanism. You can also bundle additional native libraries which are not part of the OS into your .apk.
Android.
https://developer.xamarin.com/guides/android/advanced_topics/using_native_libraries/
the same for
iOS.
https://developer.xamarin.com/guides/ios/advanced_topics/native_interop/
Regards. I hope this help you.
Need some help on xamarin Platform. I understand it can be used to develop Android-base and iOS-base App on Xamarin. I have the following questions:
For Android and iOS-based app develop on Xamarin, can the app run on Android-tablet ad iOS-tablet respectively? what I need to do for both tablets respectively?
If there are new controls for android and iOS, how Xamarin will update this for development?
1) Yes they can run on Android Tablet and iPad. Your code logic would remain the same but you would need to provide for the UI since the resolutions are different.
For iOS, Xamarin makes it simple by providing for a Universal template which allows you to provide different layouts for iPhone & iPad.
For Android, there is no template as such but the process remains the same just as you would for phones with different resolutions.
2) Assuming you are talking about the default controls, they will made available in the Xamarin framework via their regular update channels. First they are in Alpha, then in Beta and once the bugs have been ironed out, they are made available to Stable channel which can then be used in the production apps safely.
I would recommend you go through their docs which are quite good and explains this whole thing in quite detail. Xamarin Docs
I am new to Xamarin, and performing a feasibility study.
I am not sure if Xamarin provides a Common API for Bluetooth Low energy across platforms including iOS, android, Windows? In iOS, this API is coreBluetooth.
Please provide details; I couldn't find any good information when searching the net.
Yes Xamarin.iOS and Xamarin.Android do support Bluetooth.
No, they do not supply a common API
For my Sphero hacking - I wrote a cross platform BlueTooth Sphero-specific module https://github.com/slodge/BallControl/tree/master/Cirrious.Sphero.WorkBench/Plugins/Sphero
On iOS this module used ExternalAccessory rather than CoreBLuetooth - just because that is the way Sphero works, but on the other platforms Sphero uses Bluetooth SPP
If you need some CoreBluetooth sample code, then I wrote and tested some code in http://forums.xamarin.com/discussion/comment/7576/ and Solving 'CBConcreteCentralManager is not powered on' in Core Bluetooth in MonoTouch
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:
There is no option to generate IPA with dSYM in project build settings—looks like they're only available when compiling for the device.
All I want is a MonoTouch-aware dSYM for Simulator.
Is this possible?
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?
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
I'm writing an application for the iPhone in MonoTouch, and I have some performance problems I would like to investigate. I can see from resources on the net, that I should use Instruments for this. I looked up the documentation from Xamarin on how to profile my app with Instruments, but this documentation says I should start Instruments via the Terminal. But when I try to run the command, it says Instruments is not found. I tried looking at the /Developer folder, and there's no Instruments there.
As far as I understand, Instruments is now integrated with XCode 4 (Which is the version I have installed) and so I can't launch Instruments on it's own.
It seems Instruments will only launch when XCode has a project loaded, but how can I open my project in XCode when it's a MonoTouch project?
It seems other people can get it working, as there's alot of questions on SO regarding MonoTouch and Instruments and how to analyze the data. But I haven't been able to find any that tells me how to actually start Instruments and profile my MonoTouch app.
Thanks for any pointers.
If you have Xcode 4.2, try this from a terminal:
open /Developer/Applications/Instruments.app
If you have Xcode 4.3, you can open Instruments from inside Xcode's menu: Xcode -> Open Developer Tool -> Instruments