summaryrefslogtreecommitdiff
path: root/gui/mainwindow.cpp
diff options
context:
space:
mode:
authorPeter Lohrmann <PeterL@valvesoftware.com>2013-07-10 11:08:14 -0400
committerJosé Fonseca <jfonseca@vmware.com>2013-07-20 13:51:36 +0100
commitb34c6756b2e1abb6be20770f43f44d0b5e90f677 (patch)
treeb6b80721162fd92cb34614576807c6ad632d9703 /gui/mainwindow.cpp
parent2ceeef2438ae8dadef64357e385fcbab6059cca6 (diff)
qapitrace: Add option to replay in singlethreaded mode
Some traces fail to replay (hang) if glretrace does not have --singelthread on the command line, this change makes a UI option available.
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r--gui/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index 2891863a..23729cd6 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -196,6 +196,9 @@ void MainWindow::replayStart()
dlgUi.errorCheckCB->setChecked(
!m_retracer->isBenchmarking());
+ dlgUi.singlethreadCB->setChecked(
+ m_retracer->isSinglethread());
+
if (dlg.exec() == QDialog::Accepted) {
m_retracer->setDoubleBuffered(
dlgUi.doubleBufferingCB->isChecked());
@@ -203,6 +206,9 @@ void MainWindow::replayStart()
m_retracer->setBenchmarking(
!dlgUi.errorCheckCB->isChecked());
+ m_retracer->setSinglethread(
+ dlgUi.singlethreadCB->isChecked());
+
m_retracer->setProfiling(false, false, false);
replayTrace(false, false);