Faster alternative to event-tracing functions in base
