| 987 | } |
| 988 | |
| 989 | void MainWindow::performanceTest() |
| 990 | { |
| 991 | performanceTestDialog dialog(this); |
| 992 | if (dialog.exec() == QDialog::Accepted) |
| 993 | { |
| 994 | if (dialog.getSelectedTestIndex() == 0) |
| 995 | this->cache->testConversionSpeed(); |
| 996 | else if (dialog.getSelectedTestIndex() == 1) |
| 997 | ui.displaySplitView->testDrawingSpeed(); |
| 998 | else if (dialog.getSelectedTestIndex() == 2) |
| 999 | { |
| 1000 | QString info; |
| 1001 | info.append(QString("YUVIEW_VERSION %1\n").arg(YUVIEW_VERSION)); |
| 1002 | info.append(QString("YUVIEW_HASH %1\n").arg(YUVIEW_HASH)); |
| 1003 | info.append(QString("VERSION_CHECK %1\n").arg(VERSION_CHECK)); |
| 1004 | info.append(QString("UPDATE_FEATURE_ENABLE %1\n").arg(UPDATE_FEATURE_ENABLE)); |
| 1005 | info.append(QString("pixmapImageFormat %1\n") |
| 1006 | .arg(functionsGui::pixelFormatToString(functionsGui::pixmapImageFormat()))); |
| 1007 | info.append(QString("getOptimalThreadCount %1\n").arg(functions::getOptimalThreadCount())); |
| 1008 | info.append(QString("systemMemorySizeInMB %1\n").arg(functions::systemMemorySizeInMB())); |
| 1009 | |
| 1010 | QMessageBox::information(this, "Internal Info", info); |
| 1011 | } |
| 1012 | } |
| 1013 | } |
no test coverage detected