36 #include "IPMStream.h" 39 #if defined (ID_ENABLE_DEBUGGING) && (!TESTLIB_BUILD) 42 #define LOG_DECL TESTLIB_DECL 82 LogObject(
const char *logFileName, bool16 newFile = kTrue, bool16 writeMemoryInfo = kTrue, bool16 autoflush = kFalse);
93 LogObject(bool16 newFile,
const char *logFileName, bool16 autoflush = kFalse);
106 LogObject(
IDFile pathAndName, bool16 newFile = kTrue, bool16 autoflush = kFalse);
121 void WriteLog(bool16 terminateLine,
const char *format, ... );
129 void WriteLogFormat(
const char *format, va_list argptr, bool16 terminateLine = kTrue );
137 void WriteLog(
const PMString& logString, bool16 terminateLine = kTrue);
144 void WriteDateTime(bool16 terminateLine);
151 void WriteElapsedTime(bool16 terminateLine);
157 void WriteMemoryInfo();
162 void WriteAvailableMemory();
167 void WriteMemoryUsed();
172 void WriteSeparator();
188 int16 GetNumIndents();
196 void Prepend(
const PMString& prepend);
201 void RemovePrepend();
230 static PMString GetBenchmarkDataDir();
250 void WriteInsert(
const PMString& logString, CharCounter startPos);
256 void WriteBasicHeader(
const char *fileName);
261 IPMStream *GetStream( OpenMode mode = kOpenTrunc );
269 bool16 fWriteTrailer;
271 std::string fPrepend;