aboutsummaryrefslogtreecommitdiff
path: root/src/tools/perf/util/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/perf/util/stat.h')
-rw-r--r--src/tools/perf/util/stat.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/tools/perf/util/stat.h b/src/tools/perf/util/stat.h
deleted file mode 100644
index ae8ccd7..0000000
--- a/src/tools/perf/util/stat.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef __PERF_STATS_H
-#define __PERF_STATS_H
-
-#include "types.h"
-
-struct stats
-{
- double n, mean, M2;
- u64 max, min;
-};
-
-void update_stats(struct stats *stats, u64 val);
-double avg_stats(struct stats *stats);
-double stddev_stats(struct stats *stats);
-double rel_stddev_stats(double stddev, double avg);
-
-static inline void init_stats(struct stats *stats)
-{
- stats->n = 0.0;
- stats->mean = 0.0;
- stats->M2 = 0.0;
- stats->min = (u64) -1;
- stats->max = 0;
-}
-#endif