1. A method for monitoring a performance of a resource of a computing device, the method comprising: receiving an application code, wherein the application code includes at least one application thread configured to implement at least one task for the application code, and the application code is configured to spawn a performance thread; executing the application thread on the computing device, the application thread configured to use at least one resource of the computing device; and executing the performance thread of the application code on the computing device, the performance thread configured to calculate a value relating to the use of the at least one resource.