Get battery usage data at finer resolution
dumpsys batterystats (or dumpsys batteryinfo pre-Lollipop) should give you the information you are looking for, broken down by process/package.  The machine-readable format (--checkin flag) will show specific UIDs if you need them.

You will probably need root to run that command in a terminal on your device, but it should also work from adb shell.