In order to deal with complains from iPhone 3G S owners experiencing short battery life, Apple has designed a procedure. If a customer claims his iPhone 3G S has a limited battery life, Apple will offer him to monitor it battery thank to a specially-designed application to be installed on the phone.
It generates a profile including all usage of the iPhone over a time period. If one analyzes further the log file you can see that all actions are recorded:
Sun Jun 21 22:29:36 2009: [Assertion released] name=PersConn-aosnotifyd-com.apple.AOSNotification; process=aosnotifyd; pid=31; NoIdleSleepAssertion=255; held_for=00:00:12;Sun Jun 21 22:29:38 2009 Frontmost Application Changed: com.apple.mobilesafari (96)Sun Jun 21 22:29:53 2009: Battery level =