CodeTools[Profiling] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Profiling : CodeTools[Profiling] : CodeTools/Profiling/Allow

CodeTools[Profiling]

  

Allow

  

allow procedures and modules marked by Ignore to be profiled

 

Calling Sequence

Parameters

Description

Examples

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

withCodeTools[Profiling]:

a := proc() return "a" end proc;

aprocreturnaend proc

(1)

b := proc() return "b" end proc;

bprocreturnbend proc

(2)

Ignorea

Profile

a:

b:

PrintProfilesa

Error, (in CodeTools:-Profiling:-PrintProfiles) a is not currently profiled

PrintProfilesb

b

b := proc()
     |Calls Seconds  Words|
PROC |    1   0.000      0|
   1 |    1   0.000      0| return "b"
end proc

UnProfile

Profilea

Error, (in CodeTools:-Profiling:-Profile) a is invalid or an ignored procedure

Allowa

Profile

a:

b:

PrintProfilesa

a

a := proc()
     |Calls Seconds  Words|
PROC |    1   0.000      0|
   1 |    1   0.000      0| return "a"
end proc

PrintProfilesb

b

b := proc()
     |Calls Seconds  Words|
PROC |    1   0.000      0|
   1 |    1   0.000      0| return "b"
end proc

See Also

CodeTools[Profiling]

CodeTools[Profiling][Ignore]

CodeTools[Profiling][PrintProfiles]

CodeTools[Profiling][Profile]

rtable

select

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam