summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-05-08 19:18:01 +0200
committerHarald Welte <laforge@gnumonks.org>2014-05-08 19:18:01 +0200
commit7a04624563ac72b7237e39d6fcee5dab96f4d948 (patch)
treee97aa7567abe2c3f205c327ff3ef5d5d160fbd2e /src/main.c
parent8b5e0c7b81cba9f064bed97dc743e5a9a13818f1 (diff)
Add cycle benchmarking support
This enables benchmarking of the codec. It will print the amount of CPU cycles needed for encoding/decoding a single 20ms frame on average.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index dfe46dd..900eadf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -34,6 +34,7 @@
#include <gapk/codecs.h>
#include <gapk/formats.h>
#include <gapk/procqueue.h>
+#include <gapk/benchmark.h>
struct gapk_options
@@ -557,6 +558,8 @@ error:
/* Release processing queue */
pq_destroy(gs->pq);
+
+ benchmark_dump();
return rv;
}