summaryrefslogtreecommitdiffstats
path: root/common/stats.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-04-10 00:55:39 +0200
committerwm4 <wm4@nowhere>2020-04-10 00:55:39 +0200
commita2846faa321fdfd57af01a21c2df08e5b5ffb6ca (patch)
treeb21c659aee287654d350a9e1f47f558baa0fc1ac /common/stats.h
parent437a46d443eac95ceeff174ce3d5b4bdd42f1834 (diff)
downloadmpv-a2846faa321fdfd57af01a21c2df08e5b5ffb6ca.tar.bz2
mpv-a2846faa321fdfd57af01a21c2df08e5b5ffb6ca.tar.xz
player, stats: more silly debug stuff
In addition to stats.c being gross, I don't think master branch code should be littered with debug code. But it's a helpful abomination.
Diffstat (limited to 'common/stats.h')
-rw-r--r--common/stats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/stats.h b/common/stats.h
index 4568a57cff..caa002a407 100644
--- a/common/stats.h
+++ b/common/stats.h
@@ -22,6 +22,9 @@ void stats_size_value(struct stats_ctx *ctx, const char *name, double val);
void stats_time_start(struct stats_ctx *ctx, const char *name);
void stats_time_end(struct stats_ctx *ctx, const char *name);
+// Display number of events per poll period.
+void stats_event(struct stats_ctx *ctx, const char *name);
+
// Report the thread's CPU time. This needs to be called only once per thread.
// The current thread is assumed to stay valid until the stats_ctx is destroyed
// or stats_unregister_thread() is called, otherwise UB will occur.