Close
Close window
Merge - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

CodeTools[Profiling]

Merge

merge tables of profiling data into a single table

Calling Sequence

Merge(tab1, tab2, ..., filename1, filename2, ...)

Parameters

tab1, tab2, ...

-

(optional) table

filename1, filename2, ...

-

(optional) filename

Description

The Merge(tab1, tab2, ...) command combines the specified tables, tab1, tab2, ..., of profiling data together into a single table.

The Merge(filename1, filename2, ...) command reads the profiling data from the specified files, filename1, filename2, ..., and combines it into a single table.

The Merge(tab1, tab2, ..., filename1, filename2, ...) command reads the profiling data from the specified tables, tab1, tab2, ..., and the specified files, filename1, filename2, ..., and combines it into a single table.

Procedures that appear more than once have their data summed.

If no parameters are specified, Merge raises an error.

Examples

>

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

>

withCodeToolsProfiling:

>

t1Buildprocs=a,commands=a0,commands=a2

t1table_Inert_ASSIGNEDNAMEa,PROC=216206100110

(1)
>

PrintProfilest1

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

>

t2Buildprocs=a&comma;commands=a0&comma;commands=a2&comma;a1

t2table_Inert_ASSIGNEDNAMEa&comma;PROC=309309100200

(2)
>

PrintProfilest2

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

>

tMerget1&comma;t2

ttable_Inert_ASSIGNEDNAMEa&comma;PROC=51155015200310

(3)
>

PrintProfilest

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


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /