#84322# : profiling output

This commit is contained in:
mfe 2001-02-28 08:54:50 +00:00
parent 9a04c449f3
commit 4de1d131c0

View file

@ -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);
}