memory profiling for events
Merge pull request #335 from kirk24788/master

Profiling Code