diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-06-27 17:34:51 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2015-06-27 19:05:41 +0100 |
commit | 00432ff260beba0bf6535d7fd1c0275de303ed57 (patch) | |
tree | abf1a24eadeaa6d4819c80fb3591741b080c0fd2 /lib/tests/igt_stats.c | |
parent | 817ea87b6edab2d25a2994f076562ee03aa91fc6 (diff) |
stats: Allow the underlying arrays to grow at will
Chris mentioned he wanted to be able to measure a variable "for one
second" and use igt_stats to store them. That's one case where we don't
know the number of data points upfront.
We should really support that, so here it is.
v2: Just free ->sorted when a new capacity is needed.
ensure_sorted_values() will then reallocate the array to the new
capacity on demand (Chris)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/tests/igt_stats.c')
0 files changed, 0 insertions, 0 deletions