Added ability to set view name for profiling events.