Runtime performance instrumentation for JavaScript