Re: [PATCH 2/4] perf, tools: Implement duration_time as a proper event

From: Andi Kleen
Date: Wed Mar 27 2019 - 09:54:42 EST

> 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.