If you're using a Symbian/S60 based phone, then search for Nokia Energy Profiler. It doesn't work on Series 40 based phones.