tracing: Factorize the events profile accounting