[Pixman] [PATCH 3/8] perfstat: Add performance statistics analyzer configuration

Taekyun Kim podain77 at gmail.com
Mon Sep 19 07:08:21 PDT 2011


From: Taekyun Kim <tkq.kim at samsung.com>

New configuration option --enable-perf-stat is added which defines
PIXMAN_PERF_STAT macro to enable performance statistics analyzer.
---
 configure.ac |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8771ec9..07dd89d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -599,6 +599,19 @@ if test $enable_timers = yes ; then
 fi
 AC_SUBST(PIXMAN_TIMERS)
 
+dnl ==============================================
+dnl Performance statistics analyzer
+
+AC_ARG_ENABLE(perf_stat,
+   [AC_HELP_STRING([--enable-perf-stat],
+		   [enable performance statistics analyzer [default=no]])],
+   [enable_perf_stat=$enableval], [enable_perf_stat=no])
+
+if test $enable_perf_stat = yes ; then
+   AC_DEFINE(PIXMAN_ENABLE_PERFSTAT, 1, [enable performance statistics analyzer macros])
+fi
+AC_SUBST(PIXMAN_ENABLE_PERFSTAT)
+
 dnl ===================================
 dnl GTK+
 
-- 
1.7.1



More information about the Pixman mailing list