unprofile - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


unprofile

turn off internal profiling

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

unprofile(procedure, procedure, ... );

Parameters

procedure

-

any valid maple procedure that has already been profiled with profile.

Description

• 

The procedure unprofile alters the given profiled procedures to their original state before they were profiled.

• 

If no procedures are specified, all procedures currently profiled are restored to their original state.

• 

When a procedure is unprofiled, all runtime information for that procedure is lost.

• 

If unprofile is successful, it returns NULL on exit.

Examples

fib:=proc(n) option remember; if n<2 then n else fib(n-1)+fib(n-2) end if; end proc:

f:=proc(x) x end proc:

profilefib&comma;f

fib5

5

(1)

f3,f4

3,4

(2)

Show only the specified function.

showprofilefib

function           depth    calls     time    time%         bytes   bytes%
---------------------------------------------------------------------------
fib                    5        9    0.000     0.00          6288    95.62
---------------------------------------------------------------------------
total:                 6       11    0.000     0.00          6576   100.00

Show all.

showprofile

function           depth    calls     time    time%         bytes   bytes%
---------------------------------------------------------------------------
fib                    5        9    0.000     0.00          6288    95.62
f                      1        2    0.000     0.00           288     4.38
---------------------------------------------------------------------------
total:                 6       11    0.000     0.00          6576   100.00

unprofilefib

This produces an error, as the function is no longer being profiled.

showprofilefib

Error, (in showprofile) fib is not profiled

See Also

excallgraph

exprofile

profile

showprofile