Energy Efficiency Analysis And Optimization For Mobile Platforms