diff options
author | mfe <mfe@openoffice.org> | 2001-02-28 09:02:22 +0000 |
---|---|---|
committer | mfe <mfe@openoffice.org> | 2001-02-28 09:02:22 +0000 |
commit | ccafa6c16d2225a11316309cf23b42c7163b82de (patch) | |
tree | 20a4e6da9e0cc4bbe982f6763c3004a754d58d07 | |
parent | 4de1d131c0ac103eaeba9a8ca993ff3d03e2dad1 (diff) |
#84322# : profiling output
-rw-r--r-- | sal/osl/unx/diagnose.c | 8 | ||||
-rw-r--r-- | sal/osl/w32/diagnose.c | 15 |
2 files changed, 18 insertions, 5 deletions
diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c index 45c93747abb5..37549cf61a7d 100644 --- a/sal/osl/unx/diagnose.c +++ b/sal/osl/unx/diagnose.c @@ -2,9 +2,9 @@ * * $RCSfile: diagnose.c,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: mfe $ $Date: 2001-02-28 09:54:50 $ + * last change: $Author: mfe $ $Date: 2001-02-28 09:59:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -84,7 +84,9 @@ void SAL_CALL osl_breakDebug() exit(0); } -#define OSL_PROFILING + +/* Uncomment this define to get profiling time output */ +/* #define OSL_PROFILING */ void SAL_CALL osl_trace(const sal_Char* lpszFormat, ...) { diff --git a/sal/osl/w32/diagnose.c b/sal/osl/w32/diagnose.c index fe7c82ffb268..fd2e41c715d3 100644 --- a/sal/osl/w32/diagnose.c +++ b/sal/osl/w32/diagnose.c @@ -2,9 +2,9 @@ * * $RCSfile: diagnose.c,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: dic $ $Date: 2001-02-23 11:34:33 $ + * last change: $Author: mfe $ $Date: 2001-02-28 10:02:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -86,18 +86,29 @@ void SAL_CALL osl_breakDebug() DebugBreak(); } + + +/* Uncomment this define to get profiling time output */ +/* #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); } |