From 72ee577fa04744fd8a84b61521dff4b5187b234c Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Thu, 13 Oct 2011 02:35:09 +0200 Subject: CalculationFunction.m: Add explicit profiling to Simplify operation --- Tools/CodeGen/CalculationFunction.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tools') 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]; -- cgit v1.2.3