| 162 | } |
| 163 | |
| 164 | void endFunction(const std::string & callerName, |
| 165 | const std::string & function) |
| 166 | { |
| 167 | QMutexLocker locker(&_lock); |
| 168 | |
| 169 | --_beginsCount; |
| 170 | for (int i = 0; i < _beginsCount; ++i) { |
| 171 | _stream->operator <<(" "); |
| 172 | } |
| 173 | _stream->operator <<("STOP "); |
| 174 | _stream->operator <<( callerName.c_str() ); |
| 175 | _stream->operator <<(" "); |
| 176 | _stream->operator <<( function.c_str() ); |
| 177 | _stream->operator <<('\n'); |
| 178 | _stream->flush(); |
| 179 | } |
| 180 | }; |
| 181 | |
| 182 | Log::Log() |