diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-04-26 12:54:17 +0200 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-04-26 10:58:10 +0000 |
commit | ce0bc2626e55b8f710c54498daefc3df88d70e3d (patch) | |
tree | 6fad163752162389be5e72f3e5048cb0a0b58bcb /src/main.cpp | |
parent | d66aa1bf7e9e099643b2f1edf95b79ac5aad179b (diff) |
Add an option to destroy the view between runs
Useful to determine if there's something funky going on in caching
somewhere
Change-Id: I359eabec3b740eff602898f71a035af169800d38
Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index adeffd9..113f648 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -126,6 +126,10 @@ QStringList processCommandLineArguments(const QCoreApplication &app) QStringLiteral("-1")); parser.addOption(countOption); + QCommandLineOption destroyViewOption(QStringLiteral("destroy-view"), + QStringLiteral("Destroys the QQuickView between each test run. Use it as a debug aid, do not benchmark with this!")); + parser.addOption(destroyViewOption); + QCommandLineOption frameCountInterval(QStringLiteral("framecount-interval"), QStringLiteral("Sets the interval used to count frames in milliseconds. Only applicable to 'frame-count' shell."), QStringLiteral("count"), @@ -165,6 +169,7 @@ QStringList processCommandLineArguments(const QCoreApplication &app) Options::instance.count = parser.value(countOption).toInt(); Options::instance.hardwareMultiplier = parser.value(hardwareMultiplierOption).toDouble(); Options::instance.frameCountInterval = parser.value(frameCountInterval).toInt(); + Options::instance.destroyViewEachRun = parser.isSet(destroyViewOption); QSize size(parser.value(widthOption).toInt(), parser.value(heightOption).toInt()); |