MCPcopy Create free account
hub / github.com/IENT/YUView / performanceTest

Method performanceTest

YUViewLib/src/ui/Mainwindow.cpp:989–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989void 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}

Callers 1

createMenusAndActionsMethod · 0.95

Calls 5

getOptimalThreadCountFunction · 0.85
systemMemorySizeInMBFunction · 0.85
testConversionSpeedMethod · 0.80
testDrawingSpeedMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected