aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2011-10-13 02:35:09 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2011-10-28 18:47:56 +0200
commit72ee577fa04744fd8a84b61521dff4b5187b234c (patch)
treeb00d53bdf2a32eb0c202ffb351ebb7db84547fcd /Tools
parentbe14e6c67c4ee0dbbae1ed6008004b230a7c37c8 (diff)
CalculationFunction.m: Add explicit profiling to Simplify operation
Diffstat (limited to 'Tools')
-rw-r--r--Tools/CodeGen/CalculationFunction.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/CodeGen/CalculationFunction.m b/Tools/CodeGen/CalculationFunction.m
index a8dde0b..7779b27 100644
--- a/Tools/CodeGen/CalculationFunction.m
+++ b/Tools/CodeGen/CalculationFunction.m
@@ -21,7 +21,7 @@
BeginPackage["CalculationFunction`", {"CodeGenCactus`", "CodeGenC`", "CodeGen`",
"MapLookup`", "KrancGroups`", "Differencing`", "Errors`",
- "Helpers`", "Kranc`", "Optimize`", "Jacobian`"}];
+ "Helpers`", "Kranc`", "Optimize`", "Jacobian`", "Profile`"}];
CreateCalculationFunction::usage = "";
VerifyCalculation::usage = "";
@@ -241,7 +241,7 @@ simpCollect[collectList_, eqrhs_, localvar_, debug_] :=
collectCoeff = Collect[rhs, localCollectList];
InfoMessage[InfoFull, "ByteCount[terms collected]: ", ByteCount@collectCoeff];
- all = Collect[rhs, localCollectList, Simplify];
+ all = Profile["Collect/Simplify", Collect[rhs, localCollectList, Simplify]];
InfoMessage[InfoFull, "ByteCount[simplified rhs]: ", ByteCount@all];
all];