summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-12-21 11:36:05 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-12-21 11:36:21 (GMT)
commit08d574e9d7b17971468aa0399d950edb147b57ca (patch)
tree130dd92aab93b3447518e2593e4ab017ef700e5e
parentdeaa19cfedfb3d3c51fae64df809aa01fff1f55c (diff)
parentd15f199c142226cde18514b1ee1495c6a40e1633 (diff)
downloadCMake-08d574e9d7b17971468aa0399d950edb147b57ca.zip
CMake-08d574e9d7b17971468aa0399d950edb147b57ca.tar.gz
CMake-08d574e9d7b17971468aa0399d950edb147b57ca.tar.bz2
Merge topic 'ctest-update-timing-summary-manual'
d15f199c CTest: Expand 'Label and Subproject Summary' section of manual Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1598
-rw-r--r--Help/manual/ctest.1.rst34
1 files changed, 31 insertions, 3 deletions
diff --git a/Help/manual/ctest.1.rst b/Help/manual/ctest.1.rst
index d9af3bc..a04c403 100644
--- a/Help/manual/ctest.1.rst
+++ b/Help/manual/ctest.1.rst
@@ -330,11 +330,39 @@ associated with the tests run. The label time summary will not include labels
that are mapped to subprojects.
When the :prop_test:`PROCESSORS` test property is set, CTest will display a
-weighted test timing result in label and subproject summaries. The wall clock
-time for the test run will be multiplied by this property to give a better
-idea of how much cpu resource CTest allocated for the test. The time is
+weighted test timing result in label and subproject summaries. The time is
reported with `sec*proc` instead of just `sec`.
+The weighted time summary reported for each label or subproject j is computed
+as::
+
+ Weighted Time Summary for Label/Subproject j =
+ sum(raw_test_time[j,i] * num_processors[j,i], i=1...num_tests[j])
+
+ for labels/subprojects j=1...total
+
+where:
+
+* raw_test_time[j,i]: Wall-clock time for the ith test for the jth label or
+ subproject
+* num_processors[j,i]: Value of the CTest PROCESSORS property for the ith test
+ for the jth label or subproject
+* num_tests[j]: Number of tests associated with the jth label or subproject
+* total: Total number of labels or subprojects that have at least one test run
+
+Therefore, the weighted time summary for each label or subproject represents
+the amount of time that CTest gave to run the tests for each label or
+subproject and gives a good representation of the total expense of the tests
+for each label or subproject when compared to other labels or subprojects.
+
+For example, if "SubprojectA" showed "100 sec*proc" and "SubprojectB" showed
+"10 sec*proc", then CTest allocated approximately 10 times the CPU/core time
+to run the tests for "SubprojectA" than for "SubprojectB" (e.g. so if effort
+is going to be expended to reduce the cost of the test suite for the whole
+project, then reducing the cost of the test suite for "SubprojectA" would
+likely have a larger impact than effort to reduce the cost of the test suite
+for "SubprojectB").
+
.. _`Build and Test Mode`:
Build and Test Mode