I have an app which takes photo and then process it in NDK. The image processing is really havy and i want to take different resolution images on different phones. So my simple logic is taking higher resolution image for powerfull images and taking lower res. images on low end devices. There are three criteria first two are memory and cpu, if i take a full res image on low end phone like galaxy s it will crash during the image processing because of lack of memory. And it will take forever to process image. Third one is camera picture sizes. So here is my question, how can i profile a device and decide for the resolution of the image?
PS: I am doing image processing with OPENCV so GPU is not an option. PS2: Since i can't make comments i should clarify that i am not trying to profile my own code i am trying to profile devices that users will use.