Added event profiling support.