You can use PokerTracker or Poker Office. Well worth getting.
Also, a lot of people (including me) keep a poker diary of all their sessions (a spreadsheet or one of the many online ones that are available). Means you know exactly what you"re doing - if you"re winning or losing, and which games are most profitable for you, etc.