Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 1 | #include "retracer.h" |
| 2 | |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 3 | #include "apitracecall.h" |
José Fonseca | 3f45640 | 2012-03-25 20:59:24 +0100 | [diff] [blame] | 4 | #include "thumbnail.h" |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 5 | |
Dan McCabe | 66dfdda | 2012-03-05 17:20:39 -0800 | [diff] [blame] | 6 | #include "image.hpp" |
| 7 | |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 8 | #include <QDebug> |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 9 | #include <QVariant> |
Dan McCabe | 66dfdda | 2012-03-05 17:20:39 -0800 | [diff] [blame] | 10 | #include <QList> |
| 11 | #include <QImage> |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 12 | |
| 13 | #include <qjson/parser.h> |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 14 | |
José Fonseca | 6ea8dee | 2012-03-25 17:25:24 +0100 | [diff] [blame] | 15 | /** |
| 16 | * Wrapper around a QProcess which enforces IO to block . |
| 17 | * |
| 18 | * Several QIODevice users (notably QJSON) expect blocking semantics, e.g., |
| 19 | * they expect that QIODevice::read() will blocked until the requested ammount |
| 20 | * of bytes is read or end of file is reached. But by default QProcess, does |
| 21 | * not block. And passing QIODevice::Unbuffered mitigates but does not fully |
| 22 | * address the problem either. |
| 23 | * |
| 24 | * This class wraps around QProcess, providing QIODevice interface, while |
| 25 | * ensuring that all reads block. |
| 26 | * |
| 27 | * This class also works around a bug in QProcess::atEnd() implementation. |
| 28 | * |
| 29 | * See also: |
| 30 | * - http://qt-project.org/wiki/Simple_Crypt_IO_Device |
| 31 | * - http://qt-project.org/wiki/Custom_IO_Device |
| 32 | */ |
| 33 | class BlockingIODevice : public QIODevice |
| 34 | { |
| 35 | /* We don't use the Q_OBJECT in this class given we don't declare any |
| 36 | * signals and slots or use any other services provided by Qt's meta-object |
| 37 | * system. */ |
| 38 | public: |
| 39 | BlockingIODevice(QProcess * io); |
| 40 | bool isSequential() const; |
| 41 | bool atEnd() const; |
| 42 | bool waitForReadyRead(int msecs = -1); |
| 43 | |
| 44 | protected: |
| 45 | qint64 readData(char * data, qint64 maxSize); |
| 46 | qint64 writeData(const char * data, qint64 maxSize); |
| 47 | |
| 48 | private: |
| 49 | QProcess *m_device; |
| 50 | }; |
| 51 | |
| 52 | BlockingIODevice::BlockingIODevice(QProcess * io) : |
| 53 | m_device(io) |
| 54 | { |
| 55 | /* |
| 56 | * We pass QIODevice::Unbuffered to prevent the base QIODevice class to do |
| 57 | * its own buffering on top of the overridden readData() method. |
| 58 | * |
| 59 | * The only buffering used will be to satisfy QIODevice::peek() and |
| 60 | * QIODevice::ungetChar(). |
| 61 | */ |
| 62 | setOpenMode(ReadOnly | Unbuffered); |
| 63 | } |
| 64 | |
| 65 | bool BlockingIODevice::isSequential() const |
| 66 | { |
| 67 | return true; |
| 68 | } |
| 69 | |
| 70 | bool BlockingIODevice::atEnd() const |
| 71 | { |
| 72 | /* |
| 73 | * XXX: QProcess::atEnd() documentation is wrong -- it will return true |
| 74 | * even when the process is running --, so we try to workaround that here. |
| 75 | */ |
| 76 | if (m_device->atEnd()) { |
| 77 | if (m_device->state() == QProcess::Running) { |
| 78 | if (!m_device->waitForReadyRead(-1)) { |
| 79 | return true; |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | return false; |
| 84 | } |
| 85 | |
| 86 | bool BlockingIODevice::waitForReadyRead(int msecs) |
| 87 | { |
| 88 | Q_UNUSED(msecs); |
| 89 | return true; |
| 90 | } |
| 91 | |
| 92 | qint64 BlockingIODevice::readData(char * data, qint64 maxSize) |
| 93 | { |
| 94 | qint64 bytesToRead = maxSize; |
| 95 | qint64 readSoFar = 0; |
| 96 | do { |
| 97 | qint64 chunkSize = m_device->read(data + readSoFar, bytesToRead); |
| 98 | if (chunkSize < 0) { |
| 99 | if (readSoFar) { |
| 100 | return readSoFar; |
| 101 | } else { |
| 102 | return chunkSize; |
| 103 | } |
| 104 | } |
| 105 | Q_ASSERT(chunkSize <= bytesToRead); |
| 106 | bytesToRead -= chunkSize; |
| 107 | readSoFar += chunkSize; |
| 108 | if (bytesToRead) { |
| 109 | if (!m_device->waitForReadyRead(-1)) { |
| 110 | qDebug() << "waitForReadyRead failed\n"; |
| 111 | break; |
| 112 | } |
| 113 | } |
| 114 | } while(bytesToRead); |
| 115 | |
| 116 | return readSoFar; |
| 117 | } |
| 118 | |
| 119 | qint64 BlockingIODevice::writeData(const char * data, qint64 maxSize) |
| 120 | { |
| 121 | Q_ASSERT(false); |
| 122 | return -1; |
| 123 | } |
| 124 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 125 | Q_DECLARE_METATYPE(QList<ApiTraceError>); |
| 126 | |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 127 | Retracer::Retracer(QObject *parent) |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 128 | : QThread(parent), |
Zack Rusin | 404a1ef | 2011-04-19 23:49:56 -0400 | [diff] [blame] | 129 | m_benchmarking(false), |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 130 | m_doubleBuffered(true), |
| 131 | m_captureState(false), |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 132 | m_captureCall(0) |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 133 | { |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 134 | qRegisterMetaType<QList<ApiTraceError> >(); |
| 135 | |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 136 | #ifdef Q_OS_WIN |
| 137 | QString format = QLatin1String("%1;"); |
| 138 | #else |
| 139 | QString format = QLatin1String("%1:"); |
| 140 | #endif |
José Fonseca | 2744092 | 2011-11-01 08:27:12 +0000 | [diff] [blame] | 141 | QString buildPath = format.arg(APITRACE_BINARY_DIR); |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 142 | m_processEnvironment = QProcessEnvironment::systemEnvironment(); |
| 143 | m_processEnvironment.insert("PATH", buildPath + |
| 144 | m_processEnvironment.value("PATH")); |
| 145 | |
| 146 | qputenv("PATH", |
| 147 | m_processEnvironment.value("PATH").toLatin1()); |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | QString Retracer::fileName() const |
| 151 | { |
| 152 | return m_fileName; |
| 153 | } |
| 154 | |
| 155 | void Retracer::setFileName(const QString &name) |
| 156 | { |
| 157 | m_fileName = name; |
| 158 | } |
| 159 | |
José Fonseca | 62997b4 | 2011-11-27 15:16:34 +0000 | [diff] [blame] | 160 | void Retracer::setAPI(trace::API api) |
| 161 | { |
| 162 | m_api = api; |
| 163 | } |
| 164 | |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 165 | bool Retracer::isBenchmarking() const |
| 166 | { |
| 167 | return m_benchmarking; |
| 168 | } |
| 169 | |
| 170 | void Retracer::setBenchmarking(bool bench) |
| 171 | { |
| 172 | m_benchmarking = bench; |
| 173 | } |
| 174 | |
| 175 | bool Retracer::isDoubleBuffered() const |
| 176 | { |
| 177 | return m_doubleBuffered; |
| 178 | } |
| 179 | |
| 180 | void Retracer::setDoubleBuffered(bool db) |
| 181 | { |
| 182 | m_doubleBuffered = db; |
| 183 | } |
| 184 | |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 185 | void Retracer::setCaptureAtCallNumber(qlonglong num) |
| 186 | { |
| 187 | m_captureCall = num; |
| 188 | } |
| 189 | |
| 190 | qlonglong Retracer::captureAtCallNumber() const |
| 191 | { |
| 192 | return m_captureCall; |
| 193 | } |
| 194 | |
| 195 | bool Retracer::captureState() const |
| 196 | { |
| 197 | return m_captureState; |
| 198 | } |
| 199 | |
| 200 | void Retracer::setCaptureState(bool enable) |
| 201 | { |
| 202 | m_captureState = enable; |
| 203 | } |
| 204 | |
Dan McCabe | 66dfdda | 2012-03-05 17:20:39 -0800 | [diff] [blame] | 205 | bool Retracer::captureThumbnails() const |
| 206 | { |
| 207 | return m_captureThumbnails; |
| 208 | } |
| 209 | |
| 210 | void Retracer::setCaptureThumbnails(bool enable) |
| 211 | { |
| 212 | m_captureThumbnails = enable; |
| 213 | } |
| 214 | |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 215 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 216 | /** |
| 217 | * Starting point for the retracing thread. |
| 218 | * |
| 219 | * Overrides QThread::run(). |
| 220 | */ |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 221 | void Retracer::run() |
| 222 | { |
José Fonseca | 126f64b | 2012-03-28 00:13:55 +0100 | [diff] [blame] | 223 | QString msg = QLatin1String("Replay finished!"); |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 224 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 225 | /* |
| 226 | * Construct command line |
| 227 | */ |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 228 | |
José Fonseca | 62997b4 | 2011-11-27 15:16:34 +0000 | [diff] [blame] | 229 | QString prog; |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 230 | QStringList arguments; |
Zack Rusin | 16ae036 | 2011-04-11 21:30:04 -0400 | [diff] [blame] | 231 | |
José Fonseca | 62997b4 | 2011-11-27 15:16:34 +0000 | [diff] [blame] | 232 | if (m_api == trace::API_GL) { |
| 233 | prog = QLatin1String("glretrace"); |
| 234 | } else if (m_api == trace::API_EGL) { |
| 235 | prog = QLatin1String("eglretrace"); |
| 236 | } else { |
José Fonseca | 6796438 | 2012-03-27 23:54:30 +0100 | [diff] [blame] | 237 | emit finished(QLatin1String("Unsupported API")); |
José Fonseca | 62997b4 | 2011-11-27 15:16:34 +0000 | [diff] [blame] | 238 | return; |
| 239 | } |
| 240 | |
Zack Rusin | 16ae036 | 2011-04-11 21:30:04 -0400 | [diff] [blame] | 241 | if (m_doubleBuffered) { |
| 242 | arguments << QLatin1String("-db"); |
José Fonseca | 1872d96 | 2011-06-01 19:49:13 +0100 | [diff] [blame] | 243 | } else { |
| 244 | arguments << QLatin1String("-sb"); |
Zack Rusin | 16ae036 | 2011-04-11 21:30:04 -0400 | [diff] [blame] | 245 | } |
| 246 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 247 | if (m_captureState) { |
| 248 | arguments << QLatin1String("-D"); |
| 249 | arguments << QString::number(m_captureCall); |
| 250 | } else if (m_captureThumbnails) { |
| 251 | arguments << QLatin1String("-s"); // emit snapshots |
| 252 | arguments << QLatin1String("-"); // emit to stdout |
| 253 | } else if (m_benchmarking) { |
| 254 | arguments << QLatin1String("-b"); |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 255 | } |
| 256 | |
| 257 | arguments << m_fileName; |
| 258 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 259 | /* |
| 260 | * Start the process. |
| 261 | */ |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 262 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 263 | QProcess process; |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 264 | |
José Fonseca | 6ea8dee | 2012-03-25 17:25:24 +0100 | [diff] [blame] | 265 | process.start(prog, arguments, QIODevice::ReadOnly); |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 266 | if (!process.waitForStarted(-1)) { |
| 267 | emit finished(QLatin1String("Could not start process")); |
| 268 | return; |
| 269 | } |
José Fonseca | 56cd8ac | 2011-11-24 16:30:49 +0000 | [diff] [blame] | 270 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 271 | /* |
| 272 | * Process standard output |
| 273 | */ |
| 274 | |
| 275 | QList<QImage> thumbnails; |
| 276 | QVariantMap parsedJson; |
| 277 | |
| 278 | process.setReadChannel(QProcess::StandardOutput); |
| 279 | if (process.waitForReadyRead(-1)) { |
José Fonseca | 6ea8dee | 2012-03-25 17:25:24 +0100 | [diff] [blame] | 280 | BlockingIODevice io(&process); |
| 281 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 282 | if (m_captureState) { |
| 283 | /* |
| 284 | * Parse JSON from the output. |
| 285 | * |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 286 | * XXX: QJSON's scanner is inneficient as it abuses single |
| 287 | * character QIODevice::peek (not cheap), instead of maintaining a |
| 288 | * lookahead character on its own. |
| 289 | */ |
| 290 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 291 | bool ok = false; |
| 292 | QJson::Parser jsonParser; |
José Fonseca | 95b4056 | 2012-04-05 20:06:42 +0100 | [diff] [blame^] | 293 | #if 0 |
José Fonseca | 6ea8dee | 2012-03-25 17:25:24 +0100 | [diff] [blame] | 294 | parsedJson = jsonParser.parse(&io, &ok).toMap(); |
José Fonseca | 95b4056 | 2012-04-05 20:06:42 +0100 | [diff] [blame^] | 295 | #else |
| 296 | /* |
| 297 | * XXX: QJSON expects blocking IO, and it looks like |
| 298 | * BlockingIODevice does not work reliably in all cases. |
| 299 | */ |
| 300 | process.waitForFinished(-1); |
| 301 | parsedJson = jsonParser.parse(&process, &ok).toMap(); |
| 302 | #endif |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 303 | if (!ok) { |
| 304 | msg = QLatin1String("failed to parse JSON"); |
| 305 | } |
| 306 | } else if (m_captureThumbnails) { |
| 307 | /* |
| 308 | * Parse concatenated PNM images from output. |
| 309 | */ |
Dan McCabe | 66dfdda | 2012-03-05 17:20:39 -0800 | [diff] [blame] | 310 | |
José Fonseca | 6ea8dee | 2012-03-25 17:25:24 +0100 | [diff] [blame] | 311 | while (!io.atEnd()) { |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 312 | unsigned channels = 0; |
| 313 | unsigned width = 0; |
| 314 | unsigned height = 0; |
| 315 | |
| 316 | char header[512]; |
| 317 | qint64 headerSize = 0; |
| 318 | int headerLines = 3; // assume no optional comment line |
| 319 | |
| 320 | for (int headerLine = 0; headerLine < headerLines; ++headerLine) { |
José Fonseca | 6ea8dee | 2012-03-25 17:25:24 +0100 | [diff] [blame] | 321 | qint64 headerRead = io.readLine(&header[headerSize], sizeof(header) - headerSize); |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 322 | |
| 323 | // if header actually contains optional comment line, ... |
| 324 | if (headerLine == 1 && header[headerSize] == '#') { |
| 325 | ++headerLines; |
| 326 | } |
| 327 | |
| 328 | headerSize += headerRead; |
| 329 | } |
| 330 | |
| 331 | const char *headerEnd = image::readPNMHeader(header, headerSize, &channels, &width, &height); |
| 332 | |
| 333 | // if invalid PNM header was encountered, ... |
| 334 | if (header == headerEnd) { |
| 335 | qDebug() << "error: invalid snapshot stream encountered"; |
| 336 | break; |
| 337 | } |
| 338 | |
| 339 | // qDebug() << "channels: " << channels << ", width: " << width << ", height: " << height"; |
| 340 | |
| 341 | QImage snapshot = QImage(width, height, channels == 1 ? QImage::Format_Mono : QImage::Format_RGB888); |
| 342 | |
| 343 | int rowBytes = channels * width; |
| 344 | for (int y = 0; y < height; ++y) { |
| 345 | unsigned char *scanLine = snapshot.scanLine(y); |
José Fonseca | 6ea8dee | 2012-03-25 17:25:24 +0100 | [diff] [blame] | 346 | qint64 readBytes = io.read((char *) scanLine, rowBytes); |
| 347 | Q_ASSERT(readBytes == rowBytes); |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 348 | } |
| 349 | |
José Fonseca | dc9e9c6 | 2012-03-26 10:29:32 +0100 | [diff] [blame] | 350 | QImage thumb = thumbnail(snapshot); |
| 351 | thumbnails.append(thumb); |
Dan McCabe | 66dfdda | 2012-03-05 17:20:39 -0800 | [diff] [blame] | 352 | } |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 353 | |
| 354 | Q_ASSERT(process.state() != QProcess::Running); |
| 355 | |
José Fonseca | 56cd8ac | 2011-11-24 16:30:49 +0000 | [diff] [blame] | 356 | } else { |
José Fonseca | 676cd17 | 2012-03-24 09:46:24 +0000 | [diff] [blame] | 357 | QByteArray output; |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 358 | output = process.readAllStandardOutput(); |
José Fonseca | 126f64b | 2012-03-28 00:13:55 +0100 | [diff] [blame] | 359 | if (output.length() < 80) { |
| 360 | msg = QString::fromUtf8(output); |
| 361 | } |
José Fonseca | 56cd8ac | 2011-11-24 16:30:49 +0000 | [diff] [blame] | 362 | } |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 363 | } |
| 364 | |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 365 | /* |
| 366 | * Wait for process termination |
| 367 | */ |
| 368 | |
| 369 | process.waitForFinished(-1); |
| 370 | |
| 371 | if (process.exitStatus() != QProcess::NormalExit) { |
| 372 | msg = QLatin1String("Process crashed"); |
| 373 | } else if (process.exitCode() != 0) { |
| 374 | msg = QLatin1String("Process exited with non zero exit code"); |
| 375 | } |
| 376 | |
| 377 | /* |
| 378 | * Parse errors. |
| 379 | */ |
| 380 | |
Zack Rusin | 10fd477 | 2011-09-14 01:45:12 -0400 | [diff] [blame] | 381 | QList<ApiTraceError> errors; |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 382 | process.setReadChannel(QProcess::StandardError); |
José Fonseca | 8fdf56c | 2012-03-24 10:06:56 +0000 | [diff] [blame] | 383 | QRegExp regexp("(^\\d+): +(\\b\\w+\\b): ([^\\r\\n]+)[\\r\\n]*$"); |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 384 | while (!process.atEnd()) { |
| 385 | QString line = process.readLine(); |
Zack Rusin | b39e1c6 | 2011-04-19 23:09:26 -0400 | [diff] [blame] | 386 | if (regexp.indexIn(line) != -1) { |
Zack Rusin | 10fd477 | 2011-09-14 01:45:12 -0400 | [diff] [blame] | 387 | ApiTraceError error; |
Zack Rusin | b39e1c6 | 2011-04-19 23:09:26 -0400 | [diff] [blame] | 388 | error.callIndex = regexp.cap(1).toInt(); |
| 389 | error.type = regexp.cap(2); |
| 390 | error.message = regexp.cap(3); |
| 391 | errors.append(error); |
| 392 | } |
| 393 | } |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 394 | |
| 395 | /* |
| 396 | * Emit signals |
| 397 | */ |
| 398 | |
| 399 | if (m_captureState) { |
| 400 | ApiTraceState *state = new ApiTraceState(parsedJson); |
| 401 | emit foundState(state); |
| 402 | msg = QLatin1String("State fetched."); |
| 403 | } |
| 404 | |
| 405 | if (m_captureThumbnails && !thumbnails.isEmpty()) { |
| 406 | emit foundThumbnails(thumbnails); |
| 407 | } |
| 408 | |
Zack Rusin | b39e1c6 | 2011-04-19 23:09:26 -0400 | [diff] [blame] | 409 | if (!errors.isEmpty()) { |
| 410 | emit retraceErrors(errors); |
| 411 | } |
José Fonseca | 5bba477 | 2012-03-25 12:46:04 +0100 | [diff] [blame] | 412 | |
Zack Rusin | f389ae8 | 2011-04-10 19:27:28 -0400 | [diff] [blame] | 413 | emit finished(msg); |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 414 | } |
| 415 | |
Zack Rusin | 3acde36 | 2011-04-06 01:11:55 -0400 | [diff] [blame] | 416 | #include "retracer.moc" |