CodeTools[Profiling]
Allow
allow procedures and modules marked by Ignore to be profiled
Calling Sequence
Parameters
Description
Examples
Allow(name)
name
-
name of a function or module
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.
with⁡CodeToolsProfiling:
a := proc() return "a" end proc;
a≔procreturnaend proc
b := proc() return "b" end proc;
b≔procreturnbend proc
Ignore⁡a
Profile⁡
a⁡:
b⁡:
PrintProfiles⁡a
Error, (in CodeTools:-Profiling:-PrintProfiles) a is not currently profiled
PrintProfiles⁡b
b b := proc() |Calls Seconds Words| PROC | 1 0.001 0| 1 | 1 0.001 0| return "b" end proc
UnProfile⁡
Profile⁡a
Error, (in CodeTools:-Profiling:-Profile) a is invalid or an ignored procedure
Allow⁡a
a a := proc() |Calls Seconds Words| PROC | 1 0.001 0| 1 | 1 0.001 0| return "a" end proc
b b := proc() |Calls Seconds Words| PROC | 1 0.000 0| 1 | 1 0.000 0| return "b" end proc
See Also
CodeTools[Profiling][Ignore]
CodeTools[Profiling][PrintProfiles]
CodeTools[Profiling][Profile]
rtable
select
Download Help Document