Qt 4.8
Public Functions | List of all members
QBenchmarkCallgrindMeasurer Class Reference

#include <qbenchmarkvalgrind_p.h>

Inheritance diagram for QBenchmarkCallgrindMeasurer:
QBenchmarkMeasurerBase

Public Functions

int adjustIterationCount (int)
 
int adjustMedianCount (int)
 
qint64 checkpoint ()
 
bool isMeasurementAccepted (qint64 measurement)
 
QTest::QBenchmarkMetric metricType ()
 
bool needsWarmupIteration ()
 
void start ()
 
qint64 stop ()
 
- Public Functions inherited from QBenchmarkMeasurerBase
virtual void init ()
 
virtual bool repeatCount ()
 
virtual ~QBenchmarkMeasurerBase ()
 

Detailed Description

Definition at line 78 of file qbenchmarkvalgrind_p.h.

Functions

◆ adjustIterationCount()

int QBenchmarkCallgrindMeasurer::adjustIterationCount ( int  )
virtual

Implements QBenchmarkMeasurerBase.

Definition at line 262 of file qbenchmarkvalgrind.cpp.

263 {
264  return 1;
265 }

◆ adjustMedianCount()

int QBenchmarkCallgrindMeasurer::adjustMedianCount ( int  )
virtual

Implements QBenchmarkMeasurerBase.

Definition at line 267 of file qbenchmarkvalgrind.cpp.

268 {
269  return 1;
270 }

◆ checkpoint()

qint64 QBenchmarkCallgrindMeasurer::checkpoint ( )
virtual

Implements QBenchmarkMeasurerBase.

Definition at line 239 of file qbenchmarkvalgrind.cpp.

240 {
243  return result;
244 }
#define CALLGRIND_DUMP_STATS
Definition: callgrind_p.h:85
__int64 qint64
Definition: qglobal.h:942

◆ isMeasurementAccepted()

bool QBenchmarkCallgrindMeasurer::isMeasurementAccepted ( qint64  measurement)
virtual

Implements QBenchmarkMeasurerBase.

Definition at line 256 of file qbenchmarkvalgrind.cpp.

257 {
258  Q_UNUSED(measurement);
259  return true;
260 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ metricType()

QTest::QBenchmarkMetric QBenchmarkCallgrindMeasurer::metricType ( )
virtual

Implements QBenchmarkMeasurerBase.

Definition at line 277 of file qbenchmarkvalgrind.cpp.

◆ needsWarmupIteration()

bool QBenchmarkCallgrindMeasurer::needsWarmupIteration ( )
virtual

Reimplemented from QBenchmarkMeasurerBase.

Definition at line 272 of file qbenchmarkvalgrind.cpp.

273 {
274  return true;
275 }

◆ start()

void QBenchmarkCallgrindMeasurer::start ( )
virtual

Implements QBenchmarkMeasurerBase.

Definition at line 234 of file qbenchmarkvalgrind.cpp.

235 {
237 }
#define CALLGRIND_ZERO_STATS
Definition: callgrind_p.h:104

◆ stop()

qint64 QBenchmarkCallgrindMeasurer::stop ( )
virtual

Implements QBenchmarkMeasurerBase.

Definition at line 251 of file qbenchmarkvalgrind.cpp.

252 {
253  return checkpoint();
254 }

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