| Line | Source | Count |
| 1 | | - |
| 2 | QCsvBenchmarkLogger::QCsvBenchmarkLogger(const char *filename) | - |
| 3 | : QAbstractTestLogger(filename) | - |
| 4 | { | - |
| 5 | }executed 8 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 8 |
| 6 | | - |
| 7 | QCsvBenchmarkLogger::~QCsvBenchmarkLogger() | - |
| 8 | { | - |
| 9 | } | - |
| 10 | | - |
| 11 | void QCsvBenchmarkLogger::startLogging() | - |
| 12 | { | - |
| 13 | | - |
| 14 | } | - |
| 15 | | - |
| 16 | void QCsvBenchmarkLogger::stopLogging() | - |
| 17 | { | - |
| 18 | | - |
| 19 | } | - |
| 20 | | - |
| 21 | void QCsvBenchmarkLogger::enterTestFunction(const char *) | - |
| 22 | { | - |
| 23 | | - |
| 24 | } | - |
| 25 | | - |
| 26 | void QCsvBenchmarkLogger::leaveTestFunction() | - |
| 27 | { | - |
| 28 | | - |
| 29 | } | - |
| 30 | | - |
| 31 | void QCsvBenchmarkLogger::addIncident(QAbstractTestLogger::IncidentTypes, const char *, const char *, int) | - |
| 32 | { | - |
| 33 | | - |
| 34 | } | - |
| 35 | | - |
| 36 | void QCsvBenchmarkLogger::addBenchmarkResult(const QBenchmarkResult &result) | - |
| 37 | { | - |
| 38 | const char *fn = QTestResult::currentTestFunction()| TRUE | evaluated 32 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | never evaluated |
? QTestResult::currentTestFunction() | 0-32 |
| 39 | : "UnknownTestFunc"; | - |
| 40 | const char *tag = QTestResult::currentDataTag()| TRUE | evaluated 28 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
|
? QTestResult::currentDataTag() : ""; | 4-28 |
| 41 | const char *gtag = QTestResult::currentGlobalDataTag()| TRUE | never evaluated | | FALSE | evaluated 32 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| 0-32 |
| 42 | ? QTestResult::currentGlobalDataTag() | - |
| 43 | : ""; | - |
| 44 | const char *filler = (tag[0]| TRUE | evaluated 28 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
|
&& gtag[0]| TRUE | never evaluated | | FALSE | evaluated 28 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) ? ":" : ""; | 0-28 |
| 45 | | - |
| 46 | const char *metric = QTest::benchmarkMetricName(result.metric); | - |
| 47 | | - |
| 48 | char buf[1024]; | - |
| 49 | | - |
| 50 | qsnprintf(buf, sizeof(buf), "\"%s\",\"%s%s%s\",\"%s\",%.13g,%.13g,%u\n", | - |
| 51 | fn, gtag, filler, tag, metric, | - |
| 52 | result.value / result.iterations, result.value, result.iterations); | - |
| 53 | outputString(buf); | - |
| 54 | }executed 32 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 32 |
| 55 | | - |
| 56 | void QCsvBenchmarkLogger::addMessage(QAbstractTestLogger::MessageTypes, const QString &, const char *, int) | - |
| 57 | { | - |
| 58 | | - |
| 59 | } | - |
| | |