memory profiling for events