commit | 72218e7da04783222f04492d939268ac40585027 | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <axilirator@gmail.com> | Mon Sep 04 03:33:48 2017 +0700 |
committer | Vadim Yanitskiy <axilirator@gmail.com> | Sun Dec 31 12:20:59 2017 +0100 |
tree | a215de5bb42f75c5b37a88fe1bc20c5b9acd3c30 | |
parent | c9a75e59c67d62bc9d64c8c110ef47feb60e7ebf [diff] |
benchmark: allocate memory dynamically Having statically allocated memory for benchmark data of every codec causes high memory usage, especially if actual benchmarking is not required for a particular use case. Instead of that, let's provide an optional opportunity to enable benchmarking for a particular codec by calling the osmo_gapk_bench_enable(). The required amount of memory would be allocated, and then can be freed by calling the osmo_gapk_bench_free() or manually.