(@Systems Engineer answering here as I cannot do it with the "Add Comment").
I agree with you that MetricKit will probably help here (and also state reporting api)
As far as I know Xcode Organizer is only accessible to the app developer. So we (the SDK), cannot get that information directly (we know it's useful, we just cannot get it)
Regarding lower-level APIs, is there anything similar to extracting ri_billed_energy from rusage_info_current, or anything along those lines, that could help narrow the attribution down to my SDK or to specific functions in my code?
Topic:
General
SubTopic:
Power & Performance Q&A