Are you trying to get the list of fields that are associated with a profile type (e.g. Profile2 profiles) or are you trying to get the
values of the fields?
For the list of fields, you'll probably need to use one of the functions from the Field Info API ( [
api.drupal.org...] ). I'm not sure which one, because I'm not sure how native profiles use bundles and the entity API in general.
I think you'll want something like
$fields = field_info_instances('user', 'profilename');
or possibly
$fields = field_info_instances('profile', 'profilename');
I don't know how profiles work, so that's just a generic solution. I'm not sure what the parameters would be.
Then once you have your list of fields, you can iterate through them and get whatever info you want with
field_get_items() [api.drupal.org] or whatever (that's the "language-safe" way to get values, rather than trying to access field values directly, which is best avoided).
If you need meta data for the field rather than values, you would use something like
field_info_instance($entity_type, $field_name, $bundle_name)
That's all pretty general, but unfortunately I have not worked much with profiles and am not totally sure what you're trying to do.