Changeset 561 for trunk/src/testlib/qbenchmarkvalgrind.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/testlib/qbenchmarkvalgrind.cpp
r2 r561 1 2 1 /**************************************************************************** 3 2 ** 4 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 5 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 6 6 ** 7 7 ** This file is part of the QtTest module of the Qt Toolkit. … … 22 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 23 23 ** 24 ** In addition, as a special exception, Nokia gives you certain 25 ** additional rights. These rights are described in the Nokia Qt LGPL 26 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 27 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 28 27 ** 29 28 ** GNU General Public License Usage … … 35 34 ** met: http://www.gnu.org/copyleft/gpl.html. 36 35 ** 37 ** If you are unsure which license is appropriate for your use, please38 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 39 38 ** $QT_END_LICENSE$ 40 39 ** … … 52 51 #include <QtCore/qset.h> 53 52 #include "3rdparty/callgrind_p.h" 53 54 54 55 55 56 // Returns true iff a sufficiently recent valgrind is available. … … 114 115 const QString line(QLatin1String(file.readLine())); 115 116 if (rxValue.indexIn(line) != -1) { 116 Q_ASSERT(rxValue. numCaptures() == 1);117 Q_ASSERT(rxValue.() == 1); 117 118 bool ok; 118 119 val = rxValue.cap(1).toLongLong(&ok); … … 133 134 Q_ASSERT(!base.isEmpty()); 134 135 135 nameFilters << QString (QLatin1String("%1.*")).arg(base);136 nameFilters << QString).arg(base); 136 137 QFileInfoList fiList = QDir().entryInfoList(nameFilters, QDir::Files | QDir::Readable); 137 138 Q_ASSERT(!fiList.empty()); 138 139 int hiSuffix = -1; 139 140 QFileInfo lastFileInfo; 140 const QString pattern = QString (QLatin1String("%1.(\\d+)")).arg(base);141 const QString pattern = QString).arg(base); 141 142 const QRegExp rx(pattern); 142 143 foreach (QFileInfo fileInfo, fiList) { … … 168 169 Q_ASSERT(!base.isEmpty()); 169 170 nameFilters 170 << QString(QLatin1String("%1")).arg(base)// overall summary171 << QString (QLatin1String("%1.*")).arg(base); // individual dumps171 << // overall summary 172 << QString).arg(base); // individual dumps 172 173 QFileInfoList fiList = QDir().entryInfoList(nameFilters, QDir::Files | QDir::Readable); 173 174 foreach (QFileInfo fileInfo, fiList) { … … 180 181 QString QBenchmarkValgrindUtils::outFileBase(qint64 pid) 181 182 { 182 return QString (QLatin1String("callgrind.out.%1")).arg(183 return QString).arg( 183 184 pid != -1 ? pid : QCoreApplication::applicationPid()); 184 185 } … … 273 274 } 274 275 276 277 275 278 #endif // QTESTLIB_USE_VALGRIND
Note:
See TracChangeset
for help on using the changeset viewer.