diff options
author | Peter Lohrmann <PeterL@valvesoftware.com> | 2013-07-10 11:08:14 -0400 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-07-20 13:51:36 +0100 |
commit | b34c6756b2e1abb6be20770f43f44d0b5e90f677 (patch) | |
tree | b6b80721162fd92cb34614576807c6ad632d9703 /gui/mainwindow.cpp | |
parent | 2ceeef2438ae8dadef64357e385fcbab6059cca6 (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.cpp | 6 |
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); |