mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
stats: Add a getter for the population property
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
@@ -35,6 +35,19 @@ static void test_init_zero(void)
|
||||
igt_assert(stats.mean == 0.);
|
||||
}
|
||||
|
||||
static void test_init(void)
|
||||
{
|
||||
igt_stats_t stats;
|
||||
|
||||
igt_stats_init(&stats, 2);
|
||||
|
||||
/*
|
||||
* Make sure we default to representing only a sample of a bigger
|
||||
* population.
|
||||
*/
|
||||
igt_assert(igt_stats_is_population(&stats) == false);
|
||||
}
|
||||
|
||||
static void test_mean(void)
|
||||
{
|
||||
igt_stats_t stats;
|
||||
@@ -115,6 +128,7 @@ static void test_std_deviation(void)
|
||||
igt_simple_main
|
||||
{
|
||||
test_init_zero();
|
||||
test_init();
|
||||
test_mean();
|
||||
test_invalidate_mean();
|
||||
test_std_deviation();
|
||||
|
||||
Reference in New Issue
Block a user