A Tool for Light-weight Performance Instrumentation