CodeTools[Profiling] - Maple Help

Online Help

All Products    Maple    MapleSim


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

CodeTools[Profiling]

  

PrintProfiles

  

print formatted profiling data

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

PrintProfiles(proc1, proc2, ..., tab1, tab2,..., opts)

Parameters

proc1, proc2, ...

-

(optional) procedure

tab1, tab2, ...

-

(optional) table

opts

-

equation(s) of the form output=value where value is one of print or string; specify the type of output

Description

• 

The PrintProfiles() command prints profiling data for any  procedures for which PrintProfiles has profiling data.

• 

The PrintProfiles(proc1, proc2, ..., tab1, tab2, ...) command prints profiling data for the specified procedures and tables.

• 

PrintProfiles reads profiling data from currently profiled procedures and from the specified tables of profiling data.  If a procedure appears more than once in any of these sources, the profiles are joined together (as in Merge) and the data from the merged profiles is printed.

• 

The optional argument output = string indicates that PrintProfiles return a string instead of printing to the screen.

Examples

a := proc(x)
    if (x > 1) then
        return 1;
    else
        return 0;
    end if;
end proc:

withCodeTools[Profiling]:

Profilea

a1

0

(1)

PrintProfilesa

a
a := proc(x)
     |Calls Seconds  Words|
PROC |    1   0.000      3|
   1 |    1   0.000      3| if 1 < x then
   2 |    0   0.000      0|   return 1
                            else
   3 |    1   0.000      0|   return 0
                            end if
end proc

a2

1

(2)

tGetProfileTablea&comma;&apos;output&apos;&equals;&apos;table&apos;&colon;

a0

0

(3)

PrintProfilesa&comma;t

a
a := proc(x)
     |Calls Seconds  Words|
PROC |    5   0.000     15|
   1 |    5   0.000     15| if 1 < x then
   2 |    2   0.000      0|   return 1
                            else
   3 |    3   0.000      0|   return 0
                            end if
end proc

UnProfilea

PrintProfilest

a
a := proc(x)
     |Calls Seconds  Words|
PROC |    2   0.000      6|
   1 |    2   0.000      6| if 1 < x then
   2 |    1   0.000      0|   return 1
                            else
   3 |    1   0.000      0|   return 0
                            end if
end proc

See Also

CodeTools[Profiling]

CodeTools[Profiling][Build]

CodeTools[Profiling][GetProfileTable]

CodeTools[Profiling][Profile]

 


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