aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/main.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-05-21 15:37:52 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-07 08:26:19 +0000
commit6247e30afb0ee972f553f3905d893d2d586c6252 (patch)
treee65f8cd5f1cfcc949872eeba3ce69636369c51d1 /tools/qmlprofiler/main.cpp
parentaa68eab142c5e2106ab0c5e3a4bde6adfa550328 (diff)
qmlprofiler: Output data after application quits in non-interactive mode
Change-Id: I38abed0d5af3bcc7be5fa9e21bde14be40a3ce1d Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tools/qmlprofiler/main.cpp')
-rw-r--r--tools/qmlprofiler/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qmlprofiler/main.cpp b/tools/qmlprofiler/main.cpp
index 5496072eb2..12fcc79efa 100644
--- a/tools/qmlprofiler/main.cpp
+++ b/tools/qmlprofiler/main.cpp
@@ -53,6 +53,8 @@ int main(int argc, char *argv[])
listenerThread.wait();
return exitValue;
} else {
- return app.exec();
+ int exitValue = app.exec();
+ app.outputData();
+ return exitValue;
}
}