Qt 4.8
Functions
qbenchmarkvalgrind.cpp File Reference
#include "QtTest/private/qbenchmark_p.h"
#include "QtTest/private/qbenchmarkvalgrind_p.h"
#include <QtCore/qstringlist.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qprocess.h>
#include <QtCore/qdir.h>
#include <QtCore/qset.h>
#include "3rdparty/callgrind_p.h"

Go to the source code of this file.

Functions

static void dumpOutput (const QByteArray &data, FILE *fh)
 

Function Documentation

◆ dumpOutput()

static void dumpOutput ( const QByteArray data,
FILE *  fh 
)
static

Definition at line 97 of file qbenchmarkvalgrind.cpp.

Referenced by QBenchmarkValgrindUtils::runCallgrindSubProcess().

98 {
99  QFile file;
100  file.open(fh, QIODevice::WriteOnly);
101  file.write(data);
102 }
bool open(OpenMode flags)
Opens the file using OpenMode mode, returning true if successful; otherwise false.
Definition: qfile.cpp:1064
The QFile class provides an interface for reading from and writing to files.
Definition: qfile.h:65
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
Definition: qiodevice.cpp:1342