Mon Dec 6 14:05:36 PST 1999 Michael Jennings <mej@eterm.org>
Added support for the Pablo Performance Analysis Toolkit (http://www-pablo.cs.uiuc.edu/Software/Pablo/pablo.htm). SVN revision: 1510
This commit is contained in:
parent
b1994ddf16
commit
8856f0a225
|
@ -2872,3 +2872,9 @@ Thu Dec 2 22:18:51 PST 1999 Michael Jennings <mej@eterm.org>
|
|||
<namsh@lgic.co.kr>.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Mon Dec 6 14:05:36 PST 1999 Michael Jennings <mej@eterm.org>
|
||||
|
||||
Added support for the Pablo Performance Analysis Toolkit
|
||||
(http://www-pablo.cs.uiuc.edu/Software/Pablo/pablo.htm).
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
|
|
@ -321,6 +321,7 @@
|
|||
#undef FONT3
|
||||
#undef FONT4
|
||||
#undef DEF_FONT_IDX
|
||||
#undef IOTRACE
|
||||
|
||||
|
||||
/* Leave that blank line there!! Autoheader needs it.
|
||||
|
|
27
configure.in
27
configure.in
|
@ -208,6 +208,33 @@ fi
|
|||
dnl#
|
||||
dnl# FEATURES
|
||||
dnl#
|
||||
AC_MSG_CHECKING(if Pablo support is wanted)
|
||||
AC_ARG_WITH(pablo,
|
||||
[ --with-pablo[=DIR] compile with Pablo I/O Tracing support (using Pablo prefix DIR)],
|
||||
if test "$withval" != "no"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
if test "$withval" != "yes"; then
|
||||
CPPFLAGS="$CPPFLAGS -I${withval}/include"
|
||||
LDFLAGS="$LDFLAGS -L${withval}/lib"
|
||||
fi
|
||||
AC_CHECK_HEADER(IOTrace.h,
|
||||
AC_CHECK_LIB(PabloTraceExt, initIOTrace,
|
||||
AC_DEFINE(IOTRACE)
|
||||
LIBS="$LIBS -lPabloTraceExt -lPabloTrace"
|
||||
echo "Pablo support enabled. Headers in ${withval}/include. Libraries in ${withval}/lib."
|
||||
,
|
||||
echo "*** ERROR: Pablo support was requested but the Pablo libraries could not be"
|
||||
echo "*** found. Please check config.log for further information."
|
||||
echo "*** Pablo support will NOT be included."
|
||||
, -lPabloTrace)
|
||||
,
|
||||
echo "*** ERROR: Pablo support was requested but the Pablo header files could not be"
|
||||
echo "*** found. Please check the value you passed to --with-pablo."
|
||||
echo "*** Pablo support will NOT be included.")
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi, AC_MSG_RESULT(no)
|
||||
)
|
||||
AC_MSG_CHECKING(for pixmap support)
|
||||
AC_ARG_WITH(imlib,
|
||||
[ --with-imlib[=DIR] compile with Imlib support (Imlib residing in DIR/lib) (default)],
|
||||
|
|
|
@ -1116,6 +1116,7 @@ clean_exit(void)
|
|||
cleanutent();
|
||||
#endif
|
||||
privileges(REVERT);
|
||||
PABLO_STOP_TRACING();
|
||||
}
|
||||
|
||||
/* Acquire a pseudo-teletype from the system. */
|
||||
|
|
|
@ -29,11 +29,6 @@
|
|||
#ifndef _FEATURE_H_
|
||||
# define _FEATURE_H_
|
||||
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
|
||||
# include "debug.h"
|
||||
|
||||
/********************* Miscellaneous OS fixings *********************/
|
||||
|
||||
# if defined(hpux) && !defined(_HPUX_SOURCE)
|
||||
|
@ -84,6 +79,21 @@
|
|||
#define OPTIMIZE_HACKS
|
||||
#define USE_EFFECTS
|
||||
|
||||
/* For Pablo I/O Trace Library */
|
||||
#ifdef IOTRACE
|
||||
# include <IOTrace.h>
|
||||
# include <PabloTrace.h>
|
||||
# define PABLO_START_TRACING() do {setTraceProcessorNumber(0); setTraceFileName("Eterm-pablo-trace.sddf"); initIOTrace(); \
|
||||
enableLifetimeSummaries(); enableTimeWindowSummaries(0.1); enableFileRegionSummaries(8192); \
|
||||
} while (0)
|
||||
# define PABLO_STOP_TRACING() do {endIOTrace(); endTracing();} while (0)
|
||||
#endif
|
||||
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
|
||||
# include "debug.h"
|
||||
|
||||
/********************* Color, screen, and image stuff *********************/
|
||||
|
||||
/* Support for background pixmap cycling */
|
||||
|
|
|
@ -92,6 +92,8 @@ eterm_bootstrap(int argc, char *argv[])
|
|||
my_rgid = getgid();
|
||||
my_egid = getegid();
|
||||
privileges(REVERT);
|
||||
|
||||
PABLO_START_TRACING();
|
||||
getcwd(initial_dir, PATH_MAX);
|
||||
|
||||
init_defaults();
|
||||
|
|
Loading…
Reference in New Issue