summaryrefslogtreecommitdiff
path: root/lib/tests
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-06-27 17:34:51 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2015-06-27 19:05:41 +0100
commit00432ff260beba0bf6535d7fd1c0275de303ed57 (patch)
treeabf1a24eadeaa6d4819c80fb3591741b080c0fd2 /lib/tests
parent817ea87b6edab2d25a2994f076562ee03aa91fc6 (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')
0 files changed, 0 insertions, 0 deletions