Branch: Tag:

2011-05-18

2011-05-18 23:31:17 by Jonas Walldén <jonasw@roxen.com>

Implement --with-dtrace to enable source-level tracing of Pike programs using
e.g. Apple Instruments. (It's not yet balancing entry/exit properly.)

1578:    else :; fi    else :; fi   ], [with_valgrind=no]) + AC_ARG_WITH(dtrace, MY_DESCR([--with-dtrace],[embed DTrace probes]))   AC_ARG_WITH(checker, MY_DESCR([--with-checker],    [add extra memory checking overhead (Purify)]))   AC_ARG_WITH(gcov, MY_DESCR([--with-gcov],
1754:   AC_SUBST(VALGRIND)   AC_SUBST(VALGRINDARGS)    + # DTrace probes + if test "x$with_dtrace" = "xyes"; then +  AC_PATH_PROG(dtrace_prog, dtrace, no) +  if test "x$ac_cv_path_dtrace_prog" != "xno"; then +  AC_DEFINE(USE_DTRACE) +  DTRACE_REQUIREMENTS="dtrace_probes.h" +  fi + fi +    if test "x$with_checker" = "xyes"; then    AC_DEFINE(__CHECKER__)   else :; fi
8552:   AC_SUBST(RANLIB)   AC_SUBST(DEBUGDEF)   AC_SUBST(EXTRA_MODULE_REQUIREMENTS) + AC_SUBST(DTRACE_REQUIREMENTS)   AC_SUBST(noopt_retry)      pike_cv_prog_CC="${CC}"
9001:   valgrind........ yes, using $VALGRIND $VALGRINDARGS   EOF   fi + if test "x$with_dtrace" != xno ; then +  cat >>config.info <<EOF + dtrace.......... yes + EOF + fi      cat >>config.info <<EOF