摘要 |
The present embodiments provide a system that estimates a battery life for a portable electronic device. During operation, the system obtains a usage log containing traces of user-related system activity for the portable electronic device. Next, the system runs the usage log against a power model for the portable electronic device to determine the power consumption for the portable electronic device. Finally, the system uses the determined power consumption to estimate a battery life for the portable electronic device. In some embodiments, estimating the battery life involves determining a battery size to achieve a desired battery life for the portable electronic device. |