summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sal/osl/unx/diagnose.c8
-rw-r--r--sal/osl/w32/diagnose.c15
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);
}