Download this app to your desktop
PowerTutor is a diagnostic tool for analyzing system and app power usage.
The app runs on most Android phones though is designed to give accurate numbers on the G1, G2, and Nexus One phones. It runs in the background and logs data on power utilization for each app. The info is summarized in an intuitive user interface.