CodeTools[Profiling] - Maple Help

Online Help

All Products    Maple    MapleSim


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

CodeTools[Profiling]

  

Ignore

  

mark procedures and modules that should not be profiled

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Ignore(name)

Parameters

name

-

name of a function or module to be ignored

Description

• 

The Ignore(name) command marks procedures and modules specifying that they are not profiled by calls to Profile.

• 

A module or procedure that has been marked by Ignore can be unmarked using the Allow command.

• 

If called with a module, the procedures in that module and in its submodules are ignored.  These procedures inherit this behavior from the module, therefore, individual functions in an ignored module cannot be allowed. For more information, see Allow.

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][Allow]

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