summaryrefslogtreecommitdiffstats
path: root/runtime/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/stat.c')
-rw-r--r--runtime/stat.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/runtime/stat.c b/runtime/stat.c
index f8b5f018..8bd7bf12 100644
--- a/runtime/stat.c
+++ b/runtime/stat.c
@@ -237,56 +237,6 @@ stat *_stp_stat_get (Stat st, int clear)
}
-static void __stp_stat_print (char *fmt, Stat st, stat *sd, int cpu)
-{
- int num;
- char *f = (char *)fmt;
- while (*f) {
- f = next_fmt (f, &num);
- _stp_stat_print_valtype (f, &st->hist, sd, cpu);
- if (*f)
- f++;
- }
- _stp_print_char('\n');
- _stp_print_flush();
-}
-
-/** Print per-cpu Stats.
- * Prints the Stats for each CPU.
- *
- * @param st Stat
- * @param fmt @ref format_string
- * @param clear Set if you want the data cleared after the read. Useful
- * for polling.
- */
-void _stp_stat_print_cpu (Stat st, char *fmt, int clear)
-{
- int i;
- for_each_cpu(i) {
- stat *sd = per_cpu_ptr (st->sd, i);
- STAT_LOCK(sd);
- __stp_stat_print (fmt, st, sd, i);
- if (clear)
- _stp_stat_clear_data (st, sd);
- STAT_UNLOCK(sd);
- }
-}
-
-/** Print Stats.
- * Prints the Stats.
- *
- * @param st Stat
- * @param fmt @ref format_string
- * @param clear Set if you want the data cleared after the read. Useful
- * for polling.
- */
-void _stp_stat_print (Stat st, char *fmt, int clear)
-{
- stat *agg = _stp_stat_get(st, clear);
- __stp_stat_print (fmt, st, agg, 0);
- STAT_UNLOCK(agg);
-}
-
/** Clear Stats.
* Clears the Stats.
*