CodeTools[Profiling][Coverage] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Profiling : CodeTools Profiling Subpackage : Coverage : CodeTools/Profiling/Coverage/PercentSelect

CodeTools[Profiling][Coverage]

  

PercentSelect

  

select procedures based on their coverage percent

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

PercentSelect(proc1, proc1, ..., tab1, tab2, ..., opts)

Parameters

proc1, proc2, ...

-

(optional) procedure

tab1, tab2, ...

-

(optional) table of profiling data

opts

-

(optional) equation(s) of the form option=value where option is one of the following 'compare', 'depth', or 'percent'; specify options for the PercentSelect command

Description

• 

The PercentSelect() command selects from the procedures for which it has profiling data those procedures that satisfy the coverage percent comparison.

  

The coverage percent of a procedure is the number of lines covered divided by the total number of lines in the procedure.

• 

The PercentSelect(proc1, proc2, ...) command selects from the specified procedures, proc1, proc2, ..., those procedures that satisfy the coverage percent comparison.

• 

The opts parameter can contain any of the following equations that specify options for the PercentSelect command.

  

 

  

'compare'=procedure

  

Specifies a comparison procedure.  The 'compare' option can be any boolean valued procedure that accepts two numeric arguments.  The first is the calculated coverage percentage, the second is the specified percentage.  By default, `<=` is used.

  

 

  

'depth'=posint

  

Specifies the number of times that a statement has to be executed to be considered covered.  A statement is considered covered if it is executed greater than or equal to a certain number of times.  The default is one.

  

 

  

'percent'=numeric

  

Specifies the percentage to which to compare.  It is specified as a number in the range 0 to 1. The default is 0.5.

  

 

• 

PercentSelect reads profiling data from currently profiled procedures and from any 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 used.

• 

PercentSelect returns a table containing the profiling data for the selected procedures.

Examples

withCodeToolsProfiling&colon;

t1Buildcommands&equals;&apos;limx&rarr;0sinxx&apos;&colon;

CoveragePercentt1

tools/membertype 100.00%
trig/normal 2.17%
simplify/trig/multiply_and_choose 80.00%
type/arctrigh 66.67%
limit/mrv/LeadingExpon 30.00%
tools/map/function 37.50%
forget:-do_unread 66.67%
limit/MrvLimit 14.86%
simplify/trig 39.26%
series/trig 50.00%
tools/map 4.44%
ListTools:-Reverse 100.00%
limit/mrv/EXP 100.00%
combine/cmbpwr 53.85%
type/simplify/+ 100.00%
type/point 50.00%
limit/MrvLimit0 60.00%
type/laurent 100.00%
simplify 26.92%
depends:-ModuleApply 71.43%
limit/mrv/MrvLeadTerm 13.25%
simplify/normal 38.46%
type/suffixed 8.57%
forget:-forget_proc 59.26%
type/freeof 60.00%
limit/return 75.00%
limit/mrv/compare 16.67%
packages 100.00%
ceil 10.26%
testeq 4.26%
limit/MrvRight/limsimp 58.33%
simplify/trig/recurse 25.00%
simplify/do 16.39%
depends:-Main 36.67%
factor 8.00%
hasassumptions 50.00%
limit/dosubs 42.31%
type/taylor 100.00%
limit 22.89%
tools/sign 19.05%
forget:-ModuleApply 44.00%
limit/mrv/Testzero 6.67%
type/builtin 100.00%
limit/IndetsRange 100.00%
limit/ThawRange 100.00%
simplify/size/length 100.00%
series/frontend 100.00%
type/nothing 100.00%
limit/topright 15.62%
combine 51.52%
tools/eval_foo 59.09%
series/leadterm 48.15%
combine/power 31.43%
series/sin 75.00%
trig/linear_in_Pi 40.00%
type/SymbolicInfinity 100.00%
signum 9.86%
simplify/normal/check 23.33%
convert/sincos 50.00%
simplify/RootOf 10.64%
simplify/nosize 100.00%
combine/wrt 64.71%
limit/MrvRight 50.00%
type/arctrig 66.67%
sin/normal 57.14%
expand/cos 18.75%
PackageManagement:-pmember 11.76%
tools/eval_foo/do 35.71%
type/polynom 53.85%
anames 100.00%
limit/easy 52.94%
tools/truncateSeries 23.81%
type/algnum 33.33%
expand/sin 18.75%
@ 26.83%
limit/limit/piecewise 12.00%
limit/mrv/mrv 44.44%
type/simplify/* 100.00%
limit/mrv/limsimpl 29.41%

t2CoveragePercentSelectt1&comma;&apos;percent&apos;&equals;0.3&colon;

CoveragePercentt2

trig/normal 2.17%
limit/mrv/LeadingExpon 30.00%
limit/MrvLimit 14.86%
tools/map 4.44%
simplify 26.92%
limit/mrv/MrvLeadTerm 13.25%
type/suffixed 8.57%
limit/mrv/compare 16.67%
ceil 10.26%
testeq 4.26%
simplify/trig/recurse 25.00%
simplify/do 16.39%
factor 8.00%
limit 22.89%
tools/sign 19.05%
limit/mrv/Testzero 6.67%
limit/topright 15.62%
signum 9.86%
simplify/normal/check 23.33%
simplify/RootOf 10.64%
expand/cos 18.75%
PackageManagement:-pmember 11.76%
tools/truncateSeries 23.81%
expand/sin 18.75%
@ 26.83%
limit/limit/piecewise 12.00%
limit/mrv/limsimpl 29.41%

t2CoveragePercentSelectt1&colon;

CoveragePercentt2

trig/normal 2.17%
limit/mrv/LeadingExpon 30.00%
tools/map/function 37.50%
limit/MrvLimit 14.86%
simplify/trig 39.26%
series/trig 50.00%
tools/map 4.44%
type/point 50.00%
simplify 26.92%
limit/mrv/MrvLeadTerm 13.25%
simplify/normal 38.46%
type/suffixed 8.57%
limit/mrv/compare 16.67%
ceil 10.26%
testeq 4.26%
simplify/trig/recurse 25.00%
simplify/do 16.39%
depends:-Main 36.67%
factor 8.00%
hasassumptions 50.00%
limit/dosubs 42.31%
limit 22.89%
tools/sign 19.05%
forget:-ModuleApply 44.00%
limit/mrv/Testzero 6.67%
limit/topright 15.62%
series/leadterm 48.15%
combine/power 31.43%
trig/linear_in_Pi 40.00%
signum 9.86%
simplify/normal/check 23.33%
convert/sincos 50.00%
simplify/RootOf 10.64%
limit/MrvRight 50.00%
expand/cos 18.75%
PackageManagement:-pmember 11.76%
tools/eval_foo/do 35.71%
tools/truncateSeries 23.81%
type/algnum 33.33%
expand/sin 18.75%
@ 26.83%
limit/limit/piecewise 12.00%
limit/mrv/mrv 44.44%
limit/mrv/limsimpl 29.41%

t2CoveragePercentSelectt1&comma;&apos;percent&apos;&equals;0.80&colon;

CoveragePercentt2

trig/normal 2.17%
simplify/trig/multiply_and_choose 80.00%
type/arctrigh 66.67%
limit/mrv/LeadingExpon 30.00%
tools/map/function 37.50%
forget:-do_unread 66.67%
limit/MrvLimit 14.86%
simplify/trig 39.26%
series/trig 50.00%
tools/map 4.44%
combine/cmbpwr 53.85%
type/point 50.00%
limit/MrvLimit0 60.00%
simplify 26.92%
depends:-ModuleApply 71.43%
limit/mrv/MrvLeadTerm 13.25%
simplify/normal 38.46%
type/suffixed 8.57%
forget:-forget_proc 59.26%
type/freeof 60.00%
limit/return 75.00%
limit/mrv/compare 16.67%
ceil 10.26%
testeq 4.26%
limit/MrvRight/limsimp 58.33%
simplify/trig/recurse 25.00%
simplify/do 16.39%
depends:-Main 36.67%
factor 8.00%
hasassumptions 50.00%
limit/dosubs 42.31%
limit 22.89%
tools/sign 19.05%
forget:-ModuleApply 44.00%
limit/mrv/Testzero 6.67%
limit/topright 15.62%
combine 51.52%
tools/eval_foo 59.09%
series/leadterm 48.15%
combine/power 31.43%
series/sin 75.00%
trig/linear_in_Pi 40.00%
signum 9.86%
simplify/normal/check 23.33%
convert/sincos 50.00%
simplify/RootOf 10.64%
combine/wrt 64.71%
limit/MrvRight 50.00%
type/arctrig 66.67%
sin/normal 57.14%
expand/cos 18.75%
PackageManagement:-pmember 11.76%
tools/eval_foo/do 35.71%
type/polynom 53.85%
limit/easy 52.94%
tools/truncateSeries 23.81%
type/algnum 33.33%
expand/sin 18.75%
@ 26.83%
limit/limit/piecewise 12.00%
limit/mrv/mrv 44.44%
limit/mrv/limsimpl 29.41%

t2CoveragePercentSelectt1&comma;&apos;percent&apos;&equals;0.80&comma;&apos;compare&apos;&equals;`>`&colon;

CoveragePercentt2

tools/membertype 100.00%
ListTools:-Reverse 100.00%
limit/mrv/EXP 100.00%
type/simplify/+ 100.00%
type/laurent 100.00%
packages 100.00%
type/taylor 100.00%
type/builtin 100.00%
limit/IndetsRange 100.00%
limit/ThawRange 100.00%
simplify/size/length 100.00%
series/frontend 100.00%
type/nothing 100.00%
type/SymbolicInfinity 100.00%
simplify/nosize 100.00%
anames 100.00%
type/simplify/* 100.00%

CoveragePercentt1&comma;&apos;depth&apos;&equals;2

tools/membertype 100.00%
trig/normal 2.17%
simplify/trig/multiply_and_choose 0.00%
type/arctrigh 0.00%
limit/mrv/LeadingExpon 30.00%
tools/map/function 0.00%
forget:-do_unread 0.00%
limit/MrvLimit 0.00%
simplify/trig 2.22%
series/trig 45.45%
tools/map 0.00%
ListTools:-Reverse 0.00%
limit/mrv/EXP 75.00%
combine/cmbpwr 0.00%
type/simplify/+ 0.00%
type/point 0.00%
limit/MrvLimit0 0.00%
type/laurent 100.00%
simplify 26.92%
depends:-ModuleApply 71.43%
limit/mrv/MrvLeadTerm 9.40%
simplify/normal 38.46%
type/suffixed 0.00%
forget:-forget_proc 0.00%
type/freeof 60.00%
limit/return 0.00%
limit/mrv/compare 0.00%
packages 0.00%
ceil 10.26%
testeq 0.00%
limit/MrvRight/limsimp 0.00%
simplify/trig/recurse 0.00%
simplify/do 16.39%
depends:-Main 36.67%
factor 0.00%
hasassumptions 0.00%
limit/dosubs 42.31%
type/taylor 100.00%
limit 0.00%
tools/sign 19.05%
forget:-ModuleApply 0.00%
limit/mrv/Testzero 6.67%
type/builtin 0.00%
limit/IndetsRange 0.00%
limit/ThawRange 100.00%
simplify/size/length 100.00%
series/frontend 100.00%
type/nothing 100.00%
limit/topright 15.62%
combine 51.52%
tools/eval_foo 4.55%
series/leadterm 48.15%
combine/power 3.57%
series/sin 75.00%
trig/linear_in_Pi 40.00%
type/SymbolicInfinity 100.00%
signum 9.86%
simplify/normal/check 3.33%
convert/sincos 0.00%
simplify/RootOf 0.00%
simplify/nosize 100.00%
combine/wrt 64.71%
limit/MrvRight 0.00%
type/arctrig 66.67%
sin/normal 57.14%
expand/cos 0.00%
PackageManagement:-pmember 0.00%
tools/eval_foo/do 0.00%
type/polynom 7.69%
anames 100.00%
limit/easy 0.00%
tools/truncateSeries 23.81%
type/algnum 0.00%
expand/sin 0.00%
@ 2.44%
limit/limit/piecewise 12.00%
limit/mrv/mrv 8.33%
type/simplify/* 0.00%
limit/mrv/limsimpl 15.69%

t2CoveragePercentSelectt1&comma;&apos;depth&apos;&equals;2&comma;&apos;percent&apos;&equals;0.3&colon;

CoveragePercentt2&comma;&apos;depth&apos;&equals;2

trig/normal 2.17%
simplify/trig/multiply_and_choose 0.00%
type/arctrigh 0.00%
limit/mrv/LeadingExpon 30.00%
tools/map/function 0.00%
forget:-do_unread 0.00%
limit/MrvLimit 0.00%
simplify/trig 2.22%
tools/map 0.00%
ListTools:-Reverse 0.00%
combine/cmbpwr 0.00%
type/simplify/+ 0.00%
type/point 0.00%
limit/MrvLimit0 0.00%
simplify 26.92%
limit/mrv/MrvLeadTerm 9.40%
type/suffixed 0.00%
forget:-forget_proc 0.00%
limit/return 0.00%
limit/mrv/compare 0.00%
packages 0.00%
ceil 10.26%
testeq 0.00%
limit/MrvRight/limsimp 0.00%
simplify/trig/recurse 0.00%
simplify/do 16.39%
factor 0.00%
hasassumptions 0.00%
limit 0.00%
tools/sign 19.05%
forget:-ModuleApply 0.00%
limit/mrv/Testzero 6.67%
type/builtin 0.00%
limit/IndetsRange 0.00%
limit/topright 15.62%
tools/eval_foo 4.55%
combine/power 3.57%
signum 9.86%
simplify/normal/check 3.33%
convert/sincos 0.00%
simplify/RootOf 0.00%
limit/MrvRight 0.00%
expand/cos 0.00%
PackageManagement:-pmember 0.00%
tools/eval_foo/do 0.00%
type/polynom 7.69%
limit/easy 0.00%
tools/truncateSeries 23.81%
type/algnum 0.00%
expand/sin 0.00%
@ 2.44%
limit/limit/piecewise 12.00%
limit/mrv/mrv 8.33%
type/simplify/* 0.00%
limit/mrv/limsimpl 15.69%

t2CoveragePercentSelectt1&comma;&apos;depth&apos;&equals;2&comma;&apos;compare&apos;&equals;`=`&colon;

CoveragePercentt2&comma;&apos;depth&apos;&equals;2

t2CoveragePercentSelectt1&comma;&apos;depth&apos;&equals;2&comma;&apos;percent&apos;&equals;0.80&colon;

CoveragePercentt2&comma;&apos;depth&apos;&equals;2

trig/normal 2.17%
simplify/trig/multiply_and_choose 0.00%
type/arctrigh 0.00%
limit/mrv/LeadingExpon 30.00%
tools/map/function 0.00%
forget:-do_unread 0.00%
limit/MrvLimit 0.00%
simplify/trig 2.22%
series/trig 45.45%
tools/map 0.00%
ListTools:-Reverse 0.00%
limit/mrv/EXP 75.00%
combine/cmbpwr 0.00%
type/simplify/+ 0.00%
type/point 0.00%
limit/MrvLimit0 0.00%
simplify 26.92%
depends:-ModuleApply 71.43%
limit/mrv/MrvLeadTerm 9.40%
simplify/normal 38.46%
type/suffixed 0.00%
forget:-forget_proc 0.00%
type/freeof 60.00%
limit/return 0.00%
limit/mrv/compare 0.00%
packages 0.00%
ceil 10.26%
testeq 0.00%
limit/MrvRight/limsimp 0.00%
simplify/trig/recurse 0.00%
simplify/do 16.39%
depends:-Main 36.67%
factor 0.00%
hasassumptions 0.00%
limit/dosubs 42.31%
limit 0.00%
tools/sign 19.05%
forget:-ModuleApply 0.00%
limit/mrv/Testzero 6.67%
type/builtin 0.00%
limit/IndetsRange 0.00%
limit/topright 15.62%
combine 51.52%
tools/eval_foo 4.55%
series/leadterm 48.15%
combine/power 3.57%
series/sin 75.00%
trig/linear_in_Pi 40.00%
signum 9.86%
simplify/normal/check 3.33%
convert/sincos 0.00%
simplify/RootOf 0.00%
combine/wrt 64.71%
limit/MrvRight 0.00%
type/arctrig 66.67%
sin/normal 57.14%
expand/cos 0.00%
PackageManagement:-pmember 0.00%
tools/eval_foo/do 0.00%
type/polynom 7.69%
limit/easy 0.00%
tools/truncateSeries 23.81%
type/algnum 0.00%
expand/sin 0.00%
@ 2.44%
limit/limit/piecewise 12.00%
limit/mrv/mrv 8.33%
type/simplify/* 0.00%
limit/mrv/limsimpl 15.69%

See Also

CodeTools[Profiling]

CodeTools[Profiling][Build]

CodeTools[Profiling][Coverage]

CodeTools[Profiling][GetProfileTable]

CodeTools[Profiling][Merge]

CodeTools[Profiling][Profile]

CodeTools[Profiling][UnProfile]