Stratego Profile

Stratego -- Strategies for Program Transformation
Although the traversal strategy that is used can have great impact on the performance of Stratego programs, there is no mechanism (except for time measurements) to compare the use of different strategies. Additional statistics, like statistics about the number of rewrites for instance, would be of great help.

-- MerijnDeJonge & JoostVisser in Proceedings of the SecondStrategoUsersDay

With the new ImplementationScheme introduced in StrategoRelease06 it has become interesting to use the standard C profiling tools. Since each strategy operator is mapped onto a C function (modulo inlining) the profiles give quite accurate information on where a program spends its time. For this purpose compile your Stratego program with the extra command-line options

   sc -i file -CL -g -CI -g

Of course it might still be interesting to have profiles with knowledge about strategies.

-- EelcoVisser - 16 Jan 2002


CategoryToDo? | ToDo | CompilerImprovements