 Allow - Maple Help

CodeTools[Profiling]

 Allow
 allow procedures and modules marked by Ignore to be profiled Calling Sequence Allow(name) Parameters

 name - name of a function or module Description

 • The Allow(name) command removes the mark on procedures and modules specified by the Ignore command.  This allows Profile to collect information about the procedure.
 • Only procedures and modules that were passed to the Ignore command can be given to the Allow command. Examples

 > $\mathrm{with}\left({\mathrm{CodeTools}}_{\mathrm{Profiling}}\right):$
 > a := proc() return "a" end proc;
 ${a}{≔}{\mathbf{proc}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{return}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{"a"}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (1)
 > b := proc() return "b" end proc;
 ${b}{≔}{\mathbf{proc}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{return}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{"b"}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (2)
 > $\mathrm{Ignore}\left(a\right)$
 > $\mathrm{Profile}\left(\right)$
 > $a\left(\right):$
 > $b\left(\right):$
 > $\mathrm{PrintProfiles}\left(a\right)$
 > $\mathrm{PrintProfiles}\left(b\right)$
 b b := proc()      |Calls Seconds  Words| PROC |    1   0.000      0|    1 |    1   0.000      0| return "b" end proc
 > $\mathrm{UnProfile}\left(\right)$
 > $\mathrm{Profile}\left(a\right)$
 > $\mathrm{Allow}\left(a\right)$
 > $\mathrm{Profile}\left(\right)$
 > $a\left(\right):$
 > $b\left(\right):$
 > $\mathrm{PrintProfiles}\left(a\right)$
 a a := proc()      |Calls Seconds  Words| PROC |    1   0.000      0|    1 |    1   0.000      0| return "a" end proc
 > $\mathrm{PrintProfiles}\left(b\right)$
 b b := proc()      |Calls Seconds  Words| PROC |    1   0.000      0|    1 |    1   0.000      0| return "b" end proc