Patent ID: 11922100
Assignee: PURDUE RESEARCH FOUNDATION
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 2:
3. The method of claim 1, wherein estimating energy usage by the invocation of the call to the API to activate power of the device component in the mobile device further comprises:
during execution of the computer code,
logging a first call to the power-control API to activate power of the device component;
logging a second call to the power-control API to deactivate power of the device component after the first call;
identifying a power consumption level of the device component during a predetermined time interval L between the first call and the second call;
during post-processing:
generating an energy usage profile for the first call to the power-control API to activate power of the device component, based at least in part on a duration of time between the first call and the second call to the power-control API and power consumption level of the device component during the time duration L; and
storing the energy usage profile in a first memory.