A simple performance library for directly embedding instrumentation code in applications