~nathwill-deactivatedaccount-deactivatedaccount/ubuntu/precise/unity/lp-972247

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Gordon Allott
  • Date: 2009-12-18 11:42:37 UTC
  • mfrom: (44.1.8 unity.instrumented)
  • Revision ID: mail@gordallott.com-20091218114237-iol6shag1dh3ruvz
Adds instrumentation and bootcharting support to unity

Instrumentation is enabled by passing --enable-testing to configure and
logging is enabled by passing --enable-boot-logging=foobar.log to unity.

you can then process the log file with ./tools/makebootchart.py --input=foobar.log --output=foobar.svg

instrumenting the code is enabled by decorating a function with START_FUNCTION (); and END_FUNCTION (); or by decorating a smaller process with LOGGING_START_PROCESS (process_name); and LOGGING_END_PROCESS (process_name);

all process names *must* be unique thoughout the system

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
                  unique-1.0
82
82
                  x11
83
83
                  )
 
84
                
 
85
dnl testing for logging boot metrics and instrumenting
 
86
with_testing="no"
 
87
AC_ARG_ENABLE(testing,
 
88
              AS_HELP_STRING([--enable-testing],
 
89
                             [Enables instrumenting and boot metric logging]),
 
90
              with_testing=$enableval,
 
91
              with_testing=no)
 
92
AM_CONDITIONAL([HAVE_TESTING], [test "x$with_testing" = "xyes"])
 
93
                
84
94
AC_SUBST(BASE_CFLAGS)
85
95
AC_SUBST(BASE_LIBS)
86
96
 
101
111
  libunity/Makefile
102
112
  src/Makefile
103
113
  tests/Makefile
 
114
  tools/Makefile
 
115
  vapi/Makefile
104
116
])
105
117
 
106
118
dnl Output the results
110
122
  ----------------------
111
123
 
112
124
  Prefix         : ${prefix}
113
 
  Extra CFlags   : $MAINTAINER_CFLAGS
114
 
  Extra ValaFlags: $MAINTAINER_VALAFLAGS
 
125
  Extra CFlags   : ${CPPFLAGS} $MAINTAINER_CFLAGS
 
126
  Extra ValaFlags: ${CPPFLAGS} $MAINTAINER_VALAFLAGS
115
127
])