added simple event profiler