diff options
author | mfe <mfe@openoffice.org> | 2001-02-28 08:54:50 +0000 |
---|---|---|
committer | mfe <mfe@openoffice.org> | 2001-02-28 08:54:50 +0000 |
commit | 4de1d131c0ac103eaeba9a8ca993ff3d03e2dad1 (patch) | |
tree | 2488bb19bed90a839d0c4590a9a94965af488a75 /sal/osl/unx/diagnose.c | |
parent | 9a04c449f31b7f72e6a36466b0ea14759fe2560e (diff) |
#84322# : profiling output
Diffstat (limited to 'sal/osl/unx/diagnose.c')
-rw-r--r-- | sal/osl/unx/diagnose.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c index 297d21e60f45..45c93747abb5 100644 --- a/sal/osl/unx/diagnose.c +++ b/sal/osl/unx/diagnose.c @@ -2,9 +2,9 @@ * * $RCSfile: diagnose.c,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mfe $ $Date: 2001-02-26 16:17:50 $ + * last change: $Author: mfe $ $Date: 2001-02-28 09:54:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -84,18 +84,26 @@ void SAL_CALL osl_breakDebug() exit(0); } +#define OSL_PROFILING + void SAL_CALL osl_trace(const sal_Char* lpszFormat, ...) { va_list args; va_start(args, lpszFormat); +#if defined(OSL_PROFILING) + fprintf(stderr, "time : %06lu : ", osl_getGlobalTimer() ); +#else fprintf(stderr,"Trace Message : "); +#endif vfprintf(stderr,lpszFormat, args); fprintf(stderr,"\n"); + fflush(stderr); + va_end(args); } |