> > so now that we have time in a separate event, we could > get rid of the isolated update_stats(&walltime_nsecs_stats) calls > and move them to perf_stat__update_shadow_stats?
In theory yes, but it would require perf stat always setting up the duration_time event implicitely and then special handling. For stat it would need to be hidden to keep the same output. It's probably simpler to keep the old way for that. -Andi