System and method for profiling energy usage of API calls that asynchronously invoke functions
AssigneePurdue Research Foundation
InventorsYu Charlie Hu, Ning Ding
Life of this patent
Estimating the term…
Loading patent…
AssigneePurdue Research Foundation
InventorsYu Charlie Hu, Ning Ding
Estimating the term…
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.
A method for profiling energy usage of invoking an application programming interface (API) by an application that asynchronously invokes a callback function in a computing device, comprising:
Dependencies are inferred from the claim text.