I am looking for an addon that tracks my leveling experience. I'd like to be able to answer the following queries.

- At what date and time did I get to level X?
- At what "/played" did I get to level X?
- What was my XP per hour between levels X and Y?
- What percentage of my XP was earned from killing mobs/questing/other between levels X and Y?

I sat down to try and write this myself, and I can't wrap my head around where the information that I want is. I found the events "PLAYER_XP_UPDATE" and "CHAT_MSG_COMBAT_XP_GAIN" which seem to have some of the information I am looking for. I am sure there is an event for earning a level as well, so all of this seems really easy. My Lua-fu and WoW-fu is just no good.

Is there an addon that already exists which answers these queries for me?