diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-09-08 17:10:35 -0400 |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-09-08 17:10:35 -0400 |
commit | a516040579bbcd101731f02afcc715480c8d301c (patch) | |
tree | cfa70e549a0b51e38bf359c0936e81161a1f2510 /Source/CTest/cmCTestMultiProcessHandler.h | |
parent | 883338584f734d41ab393a70970e84620ec4a05b (diff) | |
download | cmake-a516040579bbcd101731f02afcc715480c8d301c.tar.gz |
ENH: ctest now writes time cost data to a file after a test set is run, and uses these time costs to schedule the processes the next time ctest is run in that build tree.
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.h')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.h b/Source/CTest/cmCTestMultiProcessHandler.h index 97af2f3ec7..ff1141c899 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.h +++ b/Source/CTest/cmCTestMultiProcessHandler.h @@ -37,8 +37,7 @@ public: cmCTestMultiProcessHandler(); // Set the tests - void SetTests(TestMap& tests, TestCostMap& testCosts, - PropertiesMap& properties); + void SetTests(TestMap& tests, PropertiesMap& properties); // Set the max number of tests that can be run at the same time. void SetParallelLevel(size_t); void RunTests(); @@ -70,6 +69,9 @@ protected: bool StartTest(int test); // Mark the checkpoint for the given test void WriteCheckpoint(int index); + void WriteCostData(int index, float cost); + void ReadCostData(); + void CreateTestCostList(); // Removes the checkpoint file void MarkFinished(); void EraseTest(int index); |