Performance optimizations. 1. Getting rid of hashmap lookup in profiler function. 2. Getting rid of string operations in profiler function. Brought down to overhead from ~10x to ~3x with these optimizations