Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QBenchmarkValgrindUtils Class Reference

#include <qbenchmarkvalgrind_p.h>

+ Collaboration diagram for QBenchmarkValgrindUtils:

Static Public Member Functions

static bool haveValgrind ()
 
static bool rerunThroughCallgrind (const QStringList &origAppArgs, int &exitCode)
 
static bool runCallgrindSubProcess (const QStringList &origAppArgs, int &exitCode)
 
static qint64 extractResult (const QString &fileName)
 
static QString getNewestFileName ()
 
static qint64 extractLastResult ()
 
static void cleanup ()
 
static QString outFileBase (qint64 pid=-1)
 

Detailed Description

Definition at line 27 of file qbenchmarkvalgrind_p.h.

Member Function Documentation

◆ cleanup()

void QBenchmarkValgrindUtils::cleanup ( )
static

Definition at line 117 of file qbenchmarkvalgrind.cpp.

References base, QBenchmarkGlobalData::current, QDir::entryInfoList(), QDir::Files, QString::fromLatin1(), Q_ASSERT, Q_UNUSED, QDir::Readable, and QFile::remove().

Referenced by QTest::qRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extractLastResult()

qint64 QBenchmarkValgrindUtils::extractLastResult ( )
static

Definition at line 112 of file qbenchmarkvalgrind.cpp.

References extractResult(), and getNewestFileName().

Referenced by QBenchmarkCallgrindMeasurer::stop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extractResult()

qint64 QBenchmarkValgrindUtils::extractResult ( const QString & fileName)
static

Definition at line 55 of file qbenchmarkvalgrind.cpp.

References QFileDevice::atEnd(), QString::data(), file, fileName, line, QFile::open(), Q_ASSERT, Q_UNLIKELY, Q_UNUSED, qFatal, QIODevice::readLine(), QIODeviceBase::ReadOnly, QString::size(), QString::startsWith(), tag, and QIODeviceBase::Text.

Referenced by extractLastResult().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNewestFileName()

QString QBenchmarkValgrindUtils::getNewestFileName ( )
static

Definition at line 83 of file qbenchmarkvalgrind.cpp.

References base, QBenchmarkGlobalData::current, QDir::entryInfoList(), QDir::Files, QString::fromLatin1(), match(), ok, Q_ASSERT, QDir::Readable, and rx().

Referenced by extractLastResult().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ haveValgrind()

bool QBenchmarkValgrindUtils::haveValgrind ( )
static

Definition at line 23 of file qbenchmarkvalgrind.cpp.

Referenced by QTest::qtest_qParseArgs().

+ Here is the caller graph for this function:

◆ outFileBase()

QString QBenchmarkValgrindUtils::outFileBase ( qint64 pid = -1)
static

Definition at line 133 of file qbenchmarkvalgrind.cpp.

References QCoreApplication::applicationPid(), and QString::fromLatin1().

Referenced by QTest::qtest_qParseArgs(), and runCallgrindSubProcess().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rerunThroughCallgrind()

bool QBenchmarkValgrindUtils::rerunThroughCallgrind ( const QStringList & origAppArgs,
int & exitCode )
static

Definition at line 36 of file qbenchmarkvalgrind.cpp.

References qWarning, and runCallgrindSubProcess().

Referenced by QTest::qRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ runCallgrindSubProcess()

bool QBenchmarkValgrindUtils::runCallgrindSubProcess ( const QStringList & origAppArgs,
int & exitCode )
static

Definition at line 142 of file qbenchmarkvalgrind.cpp.

References arg, args, QString::at(), QBenchmarkGlobalData::current, dumpOutput(), i, and outFileBase().

Referenced by rerunThroughCallgrind().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: