diff options
author | Liang Qi <liang.qi@qt.io> | 2018-01-20 22:39:09 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-01-20 22:39:09 +0100 |
commit | 35c23364c17b4a816f7bba94a09531c982a1c9ad (patch) | |
tree | 4489cb0561f29b428cde266777d25e8c17851f17 /tests | |
parent | 0ed7385dbe0be4eca685bae23c56da979232e348 (diff) | |
parent | 1b96186d1418adcba85fdbfd794da2d2f6ea122d (diff) |
Merge remote-tracking branch 'origin/5.10' into dev
Change-Id: Ibcdccc2149539466475ce32f58a9a568705caf23
Diffstat (limited to 'tests')
-rw-r--r-- | tests/benchmarks/qml/holistic/tst_holistic.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/benchmarks/qml/holistic/tst_holistic.cpp b/tests/benchmarks/qml/holistic/tst_holistic.cpp index 791ae6812b..d7e71297f2 100644 --- a/tests/benchmarks/qml/holistic/tst_holistic.cpp +++ b/tests/benchmarks/qml/holistic/tst_holistic.cpp @@ -108,8 +108,6 @@ private slots: void typeResolution_data(); void typeResolution(); -private: - QQmlEngine engine; }; tst_holistic::tst_holistic() @@ -242,6 +240,7 @@ void tst_holistic::compilation_data() void tst_holistic::compilation() { + QQmlEngine engine; // This function benchmarks the cost of loading and compiling specified QML files. // If "repetitions" is non-zero, each file from "files" will be compiled "repetitions" // times, without clearing the engine's component cache between compilations. @@ -263,6 +262,7 @@ void tst_holistic::compilation() void tst_holistic::instantiation() { + QQmlEngine engine; // This function benchmarks the cost of instantiating components compiled from specified QML files. // If "repetitions" is non-zero, each component compiled from "files" will be instantiated "repetitions" // times, without clearing the component's instantiation cache between instantiations. @@ -297,6 +297,7 @@ void tst_holistic::instantiation() void tst_holistic::creation() { + QQmlEngine engine; // This function benchmarks the cost of loading, compiling and instantiating specified QML files. // If "repetitions" is non-zero, each file from "files" will be created "repetitions" // times, without clearing the engine's component cache between component creation. @@ -359,6 +360,7 @@ void tst_holistic::dynamicity_data() void tst_holistic::dynamicity() { + QQmlEngine engine; // This function benchmarks the cost of "continued operation" - signal invocation, // updating bindings, etc. Note that we take two different writeValues in order // to force updates to occur, and we read to force lazy evaluation to occur. @@ -472,6 +474,7 @@ void tst_holistic::cppToJsDirect_data() void tst_holistic::cppToJsDirect() { + QQmlEngine engine; // This function benchmarks the cost of calling from CPP scope to JS scope // (and possibly vice versa, if the invoked js method then calls to cpp). @@ -491,6 +494,7 @@ void tst_holistic::cppToJsDirect() void tst_holistic::cppToJsIndirect() { + QQmlEngine engine; // This function benchmarks the cost of binding scarce resources // to properties of a QML component. The engine should automatically release such // resources when they are no longer used. @@ -544,6 +548,7 @@ void tst_holistic::typeResolution_data() void tst_holistic::typeResolution() { + QQmlEngine engine; // This function benchmarks the cost of "continued operation" (signal invocation, // updating bindings, etc) where the component has lots of nested items with // lots of resolving required. Note that we take two different writeValues in order |