I'm starting the development of an OSGi bundle for an application that will be deployed in a device with some hardware limitations. I'd like to know how could I profile the execution of that bundle to be always sure that it's going to fit with its dependencies in the final device. It would be nice to have a profiler to know how much memory is each bundle using, to localize bottle necks and to compare different implementations of the same service.
Is there any profiler for OSGi deployments or should I use a general Java profiler?
For developing I'm using Pax runner with Apache felix to run the bundle and maven to manage project dependencies and building.