CodeTools[Profiling]
Merge
merge tables of profiling data into a single table
Calling Sequence
Parameters
Description
Examples
Merge(tab1, tab2, ..., filename1, filename2, ...)
tab1, tab2, ...
-
(optional) table
filename1, filename2, ...
(optional) filename
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.
a := proc(x) if (x > 1) then return 1; else return 0; end if; end proc:
with⁡CodeToolsProfiling:
t1≔Build⁡procs=a,commands=a⁡0,commands=a⁡2
t1≔table⁡_Inert_ASSIGNEDNAME⁡a,PROC=206206100100
PrintProfiles⁡t1
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
t2≔Build⁡procs=a,commands=a⁡0,commands=a⁡2,a⁡−1
t2≔table⁡_Inert_ASSIGNEDNAME⁡a,PROC=309309100200
PrintProfiles⁡t2
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
t≔Merge⁡t1,t2
t≔table⁡_Inert_ASSIGNEDNAME⁡a,PROC=50155015200300
PrintProfiles⁡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
See Also
CodeTools[Profiling][Build]
CodeTools[Profiling][GetProfileTable]
CodeTools[Profiling][PrintProfiles]
CodeTools[Profiling][Profile]
CodeTools[Profiling][SaveProfiles]
Download Help Document