fix profiler var name construction to avoid shadowing warnings