System and method for profiling energy usage of API calls that asynchronously invoke functions
US11107179B2 · kind B2 · utility
Assignee
Inventors
Key dates
| Filing date | Apr 23, 2019 |
| Grant date | Aug 31, 2021 |
| Priority date | — |
| Expiry date | Dec 20, 2039 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06T2200/24
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A method for profiling energy usage of invoking an application programming interface (API) by an application in a computing device. The method includes obtaining source code for the API, modifying each class by adding a callback function identifier field that is initiated to a unique value upon instantiation of each object that belongs to the class, identifying each location in the source code that posts the callback function for asynchronous execution by enqueueing each object instantiated from the class containing the callback function into the system callback queue, modifying the source code to log the callback function identifier of object at the location that dequeues objects from the system callback queue, modifying source code by adding two system logging function calls to log the callback function identifier of the dequeued object before and after executing the callback function, executing the application, and performing energy accounting of the asynchronous API calls.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.