summaryrefslogtreecommitdiff
path: root/lib/igt_stats.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-06-26 18:04:34 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2015-06-27 16:04:07 +0100
commitda123adeae70863c967e14035f272b89371a5fd5 (patch)
treed7200b81fbe86908941bfd228f683989667904ee /lib/igt_stats.c
parent3a5cf84317197cdac88196cda76c6a7e08943f20 (diff)
stats: Add a getter for the population property
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/igt_stats.c')
-rw-r--r--lib/igt_stats.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/igt_stats.c b/lib/igt_stats.c
index c7d5fbd2..12cabba0 100644
--- a/lib/igt_stats.c
+++ b/lib/igt_stats.c
@@ -91,6 +91,20 @@ void igt_stats_fini(igt_stats_t *stats)
free(stats->values);
}
+
+/**
+ * igt_stats_is_population:
+ * @stats: An #igt_stats_t instance
+ *
+ * Returns: #true if @stats represents a population, #false if only a sample.
+ *
+ * See igt_stats_set_population() for more details.
+ */
+bool igt_stats_is_population(igt_stats_t *stats)
+{
+ return stats->is_population;
+}
+
/**
* igt_stats_set_population:
* @stats: An #igt_stats_t instance