struct perf_evsel *counter;
char buf[64], *prefix = NULL;
- /* Do not print anything if we record to the pipe. */
- if (STAT_RECORD && perf_stat.data.is_pipe)
- return;
-
if (interval)
print_interval(prefix = buf, ts);
else
static void print_counters(struct timespec *ts, int argc, const char **argv)
{
+ /* Do not print anything if we record to the pipe. */
+ if (STAT_RECORD && perf_stat.data.is_pipe)
+ return;
+
perf_evlist__print_counters(evsel_list, ts, argc, argv);
}