34 _LIT8( KFuncMemLogBegin, "BEGIN: %S @ %S/%d InSize -> %d" ); |
34 _LIT8( KFuncMemLogBegin, "BEGIN: %S @ %S/%d InSize -> %d" ); |
35 _LIT8( KFuncMemLogEnd, "END: Peek -> %d Diff -> %d Accumulated Peek -> %d" ); |
35 _LIT8( KFuncMemLogEnd, "END: Peek -> %d Diff -> %d Accumulated Peek -> %d" ); |
36 _LIT8( KTab, "\t" ); |
36 _LIT8( KTab, "\t" ); |
37 |
37 |
38 // MACROS |
38 // MACROS |
|
39 #define MEM_LOG_CREATE() \ |
|
40 RFs fs; \ |
|
41 _LIT( KFilePath, "C:\\Logs\\Webcore\\"); \ |
|
42 TFileName path (KFilePath); \ |
|
43 if(fs.Connect() == KErrNone) { \ |
|
44 fs.MkDirAll( path ); \ |
|
45 fs.Close(); \ |
|
46 } |
39 |
47 |
40 #define MEM_LOG(a) { _LIT8(temp, a); RFileLogger::Write(KMEMLogDir, KMEMLogFile, EFileLoggingModeAppend, temp); } |
48 #define MEM_LOG(a) { _LIT8(temp, a); RFileLogger::Write(KMEMLogDir, KMEMLogFile, EFileLoggingModeAppend, temp); } |
41 #define MEM_LOGF FPrint |
49 #define MEM_LOGF FPrint |
42 #define C_LOG(a) { _LIT8(temp, a); RFileLogger::Write(KMEMLogDir, KChunkLogFile, EFileLoggingModeAppend, temp); } |
50 #define C_LOG(a) { _LIT8(temp, a); RFileLogger::Write(KMEMLogDir, KChunkLogFile, EFileLoggingModeAppend, temp); } |
43 #define C_LOGF FPrint2 |
51 #define C_LOGF FPrint2 |