aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/pt_mtheme/pt_mtheme.h
diff options
context:
space:
mode:
authorPeter Penz <ppenz@openismus.com>2010-08-12 13:21:30 +0200
committerMiroslav Safr <miroslav.safr@tieto.com>2010-08-16 17:38:00 +0300
commit36b1a52ab0cbb4c52b93b1991aca6a9964222e04 (patch)
tree548f80ec43c4fd8f8c9bfa6a726228dd0606d245 /benchmarks/pt_mtheme/pt_mtheme.h
parentda3b124d6ac3e2ee38d1df983a307d92d15d74ad (diff)
Changes: Provide more detailed benchmarks for constructing a MApplication instance
RevBy: Armin Berres Details: The current benchmark for constructing a MApplication is not sufficient to know, on which sub parts the time is spend. The documentation has been extended to point to the corresponding benchmarks and those benchmarks have been extended/improved.
Diffstat (limited to 'benchmarks/pt_mtheme/pt_mtheme.h')
-rw-r--r--benchmarks/pt_mtheme/pt_mtheme.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/benchmarks/pt_mtheme/pt_mtheme.h b/benchmarks/pt_mtheme/pt_mtheme.h
index cb7783f5..7049ba6c 100644
--- a/benchmarks/pt_mtheme/pt_mtheme.h
+++ b/benchmarks/pt_mtheme/pt_mtheme.h
@@ -26,14 +26,24 @@ class MComponentData;
class MWidgetView;
/**
- * This test benchmarks the MTheme creation.
+ * This test benchmarks the MTheme creation. Most of the time when creating
+ * a MTheme instance is spend with loading stylesheets. Check pt_mstylesheet
+ * for getting more details.
*/
class Pt_MTheme : public QObject
{
Q_OBJECT
private slots:
- void constructor();
+ /**
+ * Test the performance of the MTheme constructor.
+ */
+ void uncachedConstructor();
+
+ /**
+ * Execute the constructor a second time to evaluate caching possibilities.
+ */
+ void cachedConstructor();
};
#endif