equal
deleted
inserted
replaced
44 #ifndef APPEND_TO_DEBUG_FILE |
44 #ifndef APPEND_TO_DEBUG_FILE |
45 #define REPLACE_DEBUG_FILE |
45 #define REPLACE_DEBUG_FILE |
46 #endif |
46 #endif |
47 |
47 |
48 /** |
48 /** |
49 * TODO |
49 * Prints given descriptor to debug log file. |
50 * |
50 * @param aData descriptor with data. |
51 * @param aData |
|
52 */ |
51 */ |
53 static void DoOutput( TDesC8& aData ); |
52 static void DoOutput( TDesC8& aData ); |
54 |
53 |
55 /** |
54 /** |
56 * TODO |
55 * Prints given descriptor to debug log file. |
|
56 * @param aFmt descriptor with data. |
57 */ |
57 */ |
58 static void DebugStringNarrowL( const char* aFmt, ... ) |
58 static void DebugStringNarrowL( const char* aFmt, ... ) |
59 { |
59 { |
60 VA_LIST args; |
60 VA_LIST args; |
61 VA_START(args, aFmt); |
61 VA_START(args, aFmt); |
69 |
69 |
70 VA_END(args); |
70 VA_END(args); |
71 } |
71 } |
72 |
72 |
73 /** |
73 /** |
74 * TODO |
74 * Prints given descriptor to debug log file. |
|
75 * @param aFmt descriptor with data. |
75 */ |
76 */ |
76 static void DebugStringWideL( const char* aFmt, ... ) |
77 static void DebugStringWideL( const char* aFmt, ... ) |
77 { |
78 { |
78 VA_LIST args; |
79 VA_LIST args; |
79 VA_START(args, aFmt); |
80 VA_START(args, aFmt); |
91 |
92 |
92 VA_END(args); |
93 VA_END(args); |
93 } |
94 } |
94 |
95 |
95 /** |
96 /** |
96 * TODO |
97 * Prints given time containinf descriptor to log file. |
|
98 * @param aBuf descriptor with time information. |
97 */ |
99 */ |
98 static void DebugBufferL( const TDesC8& aBuf ) |
100 static void DebugBufferL( const TDesC8& aBuf ) |
99 { |
101 { |
100 DebugStringNarrowL( "\"%S\"", &aBuf ); |
102 DebugStringNarrowL( "\"%S\"", &aBuf ); |
101 } |
103 } |
102 |
104 |
103 /** |
105 /** |
104 * TODO |
106 * Prints given time containinf descriptor to log file. |
|
107 * @param aBuf descriptor with time information. |
105 */ |
108 */ |
106 static void DebugBufferL( const TDesC& aBuf ) |
109 static void DebugBufferL( const TDesC& aBuf ) |
107 { |
110 { |
108 DebugStringWideL( "\"%S\"", &aBuf ); |
111 DebugStringWideL( "\"%S\"", &aBuf ); |
109 } |
112 } |
110 |
113 |
111 /** |
114 /** |
112 * TODO |
115 * Prints given time to log file. |
|
116 * @param aTime time to print. |
113 */ |
117 */ |
114 static void DebugTimeL( const TTime& aTime ) |
118 static void DebugTimeL( const TTime& aTime ) |
115 { |
119 { |
116 TBuf<64> dateTimeString; |
120 TBuf<64> dateTimeString; |
117 _LIT(KDateString, "%E%D%X%N%Y %1 %2 %3"); |
121 _LIT(KDateString, "%E%D%X%N%Y %1 %2 %3"); |
121 aTime.FormatL( dateTimeString, KTimeString ); |
125 aTime.FormatL( dateTimeString, KTimeString ); |
122 DebugBufferL( dateTimeString ); |
126 DebugBufferL( dateTimeString ); |
123 } |
127 } |
124 |
128 |
125 /** |
129 /** |
126 * TODO |
130 * Prints given descriptor to debug log file. |
|
131 * @param aData descriptor with data. |
127 */ |
132 */ |
128 static void DoOutput( TDesC8& aData ) |
133 static void DoOutput( TDesC8& aData ) |
129 { |
134 { |
130 RFileLogger::Write( KDebugDirName, KDebugFileName, |
135 RFileLogger::Write( KDebugDirName, KDebugFileName, |
131 EFileLoggingModeAppend, aData ); |
136 EFileLoggingModeAppend, aData ); |
133 #endif |
138 #endif |
134 |
139 |
135 #ifdef _KQTI_MENU_TRACE_PERFORMANCE |
140 #ifdef _KQTI_MENU_TRACE_PERFORMANCE |
136 |
141 |
137 /** |
142 /** |
138 * TODO |
143 * Prints given descriptor to preformance log file. |
|
144 * @param aData descriptor with data. |
139 */ |
145 */ |
140 static void DoOutputPerf(TDesC8& aData) |
146 static void DoOutputPerf(TDesC8& aData) |
141 { |
147 { |
142 RFileLogger::Write( KPerformanceLogDir, |
148 RFileLogger::Write( KPerformanceLogDir, |
143 KPerformanceLogFile, |
149 KPerformanceLogFile, |
144 EFileLoggingModeAppend, |
150 EFileLoggingModeAppend, |
145 aData ); |
151 aData ); |
146 } |
152 } |
147 |
153 |
148 /** |
154 /** |
149 * TODO |
155 * Formats string for performance debug output. |
|
156 * @param aFmt string for debug output. |
150 */ |
157 */ |
151 static void DebugStringNarrowPerfL( const char* aFmt, ... ) |
158 static void DebugStringNarrowPerfL( const char* aFmt, ... ) |
152 { |
159 { |
153 VA_LIST args; |
160 VA_LIST args; |
154 VA_START(args, aFmt); |
161 VA_START(args, aFmt); |