Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
CodeTools[Profiling][Coverage][PercentSelect] - select procedures based on their coverage percent
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.
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
collect 57.14% `DEtools/DRNF`:-MinimalLinearSpecialization 43.75% gcd/doit 11.82% SolveTools:-ModuleLoad 100.00% int/hyperexp 66.67% SolveTools:-LinearSolvers:-RationalSparse:-iprimpart 100.00% SolveTools:-LinearSolvers:-RationalSparse:-MBMSparseSolve 67.65% SolveTools:-ProcessArguments 75.00% SolveTools:-LinearSolvers:-RationalSparse:-RationalSparse 8.33% `DEtools/DRNF`:-PolynomialNormalForm 57.69% type/radalgfun 7.69% SolveTools:-LinearSolvers:-Rational 80.00% `DEtools/DRNF`:-GosperStep3 62.50% TypeTools:-AddType 88.89% gcd 21.28% int:-EnvToOptions 80.00% factor 16.18% SolveTools:-CancelInverses 31.58% packages 100.00% IntegrationTools:-Initialize 100.00% diff/exp 100.00% TypeTools:-forgetAll 100.00% type/builtin 100.00% forget:-do_unread 66.67% type/realcons 38.46% evala 3.08% resultant 11.11% collect/recursive 13.64% forget:-forget_proc 55.56% `DEtools/DRNF`:-IsHyperexponential 32.00% ListTools:-Reverse 100.00% subsindets 20.00% type/SymbolicInfinity 100.00% IntegrationTools:-Indefinite:-Main 75.00% int/tools/rename 84.62% SolveTools:-Engine:-OnLoad 100.00% index/FillInitVals 29.41% tools/gensym 66.67% SolveTools:-Linear 27.78% IntegrationTools:-Indefinite:-CleanUp 33.33% resultant/univar 20.69% int:-Init 100.00% anames 100.00% protect 100.00% int:-ModuleApply 40.00% int/indefinite 26.92% int:-Exact 60.00% PackageManagement:-pmember 11.76% type/arctrig 66.67% Cache:-AddTemporary 66.67% Cache:-ModuleLoad 75.00% TypeTools:-known 100.00% unprotect 100.00% SolveTools:-LinearSolvers:-RationalSparse:-ModuleApply 100.00% `DEtools/DRNF`:-Gosper 70.59% tools/_Qn 11.11% forget:-ModuleApply 47.83% isolve 37.14% type/suffixed 37.14%
gcd/doit 11.82% SolveTools:-LinearSolvers:-RationalSparse:-RationalSparse 8.33% type/radalgfun 7.69% gcd 21.28% factor 16.18% evala 3.08% resultant 11.11% collect/recursive 13.64% subsindets 20.00% index/FillInitVals 29.41% SolveTools:-Linear 27.78% resultant/univar 20.69% int/indefinite 26.92% PackageManagement:-pmember 11.76% tools/_Qn 11.11%
`DEtools/DRNF`:-MinimalLinearSpecialization 43.75% gcd/doit 11.82% SolveTools:-LinearSolvers:-RationalSparse:-RationalSparse 8.33% type/radalgfun 7.69% gcd 21.28% factor 16.18% SolveTools:-CancelInverses 31.58% type/realcons 38.46% evala 3.08% resultant 11.11% collect/recursive 13.64% `DEtools/DRNF`:-IsHyperexponential 32.00% subsindets 20.00% index/FillInitVals 29.41% SolveTools:-Linear 27.78% IntegrationTools:-Indefinite:-CleanUp 33.33% resultant/univar 20.69% int:-ModuleApply 40.00% int/indefinite 26.92% PackageManagement:-pmember 11.76% tools/_Qn 11.11% forget:-ModuleApply 47.83% isolve 37.14% type/suffixed 37.14%
collect 57.14% `DEtools/DRNF`:-MinimalLinearSpecialization 43.75% gcd/doit 11.82% int/hyperexp 66.67% SolveTools:-LinearSolvers:-RationalSparse:-MBMSparseSolve 67.65% SolveTools:-ProcessArguments 75.00% SolveTools:-LinearSolvers:-RationalSparse:-RationalSparse 8.33% `DEtools/DRNF`:-PolynomialNormalForm 57.69% type/radalgfun 7.69% SolveTools:-LinearSolvers:-Rational 80.00% `DEtools/DRNF`:-GosperStep3 62.50% gcd 21.28% int:-EnvToOptions 80.00% factor 16.18% SolveTools:-CancelInverses 31.58% forget:-do_unread 66.67% type/realcons 38.46% evala 3.08% resultant 11.11% collect/recursive 13.64% forget:-forget_proc 55.56% `DEtools/DRNF`:-IsHyperexponential 32.00% subsindets 20.00% IntegrationTools:-Indefinite:-Main 75.00% index/FillInitVals 29.41% tools/gensym 66.67% SolveTools:-Linear 27.78% IntegrationTools:-Indefinite:-CleanUp 33.33% resultant/univar 20.69% int:-ModuleApply 40.00% int/indefinite 26.92% int:-Exact 60.00% PackageManagement:-pmember 11.76% type/arctrig 66.67% Cache:-AddTemporary 66.67% Cache:-ModuleLoad 75.00% `DEtools/DRNF`:-Gosper 70.59% tools/_Qn 11.11% forget:-ModuleApply 47.83% isolve 37.14% type/suffixed 37.14%
SolveTools:-ModuleLoad 100.00% SolveTools:-LinearSolvers:-RationalSparse:-iprimpart 100.00% TypeTools:-AddType 88.89% packages 100.00% IntegrationTools:-Initialize 100.00% diff/exp 100.00% TypeTools:-forgetAll 100.00% type/builtin 100.00% ListTools:-Reverse 100.00% type/SymbolicInfinity 100.00% int/tools/rename 84.62% SolveTools:-Engine:-OnLoad 100.00% int:-Init 100.00% anames 100.00% protect 100.00% TypeTools:-known 100.00% unprotect 100.00% SolveTools:-LinearSolvers:-RationalSparse:-ModuleApply 100.00%
collect 57.14% `DEtools/DRNF`:-MinimalLinearSpecialization 0.00% gcd/doit 0.00% SolveTools:-ModuleLoad 0.00% int/hyperexp 0.00% SolveTools:-LinearSolvers:-RationalSparse:-iprimpart 0.00% SolveTools:-LinearSolvers:-RationalSparse:-MBMSparseSolve 0.00% SolveTools:-ProcessArguments 0.00% SolveTools:-LinearSolvers:-RationalSparse:-RationalSparse 0.00% `DEtools/DRNF`:-PolynomialNormalForm 0.00% type/radalgfun 0.00% SolveTools:-LinearSolvers:-Rational 0.00% `DEtools/DRNF`:-GosperStep3 0.00% TypeTools:-AddType 88.89% gcd 0.00% int:-EnvToOptions 10.00% factor 16.18% SolveTools:-CancelInverses 31.58% packages 0.00% IntegrationTools:-Initialize 0.00% diff/exp 0.00% TypeTools:-forgetAll 100.00% type/builtin 0.00% forget:-do_unread 0.00% type/realcons 38.46% evala 2.56% resultant 0.00% collect/recursive 9.09% forget:-forget_proc 0.00% `DEtools/DRNF`:-IsHyperexponential 28.00% ListTools:-Reverse 0.00% subsindets 20.00% type/SymbolicInfinity 100.00% IntegrationTools:-Indefinite:-Main 0.00% int/tools/rename 0.00% SolveTools:-Engine:-OnLoad 0.00% index/FillInitVals 5.88% tools/gensym 66.67% SolveTools:-Linear 0.00% IntegrationTools:-Indefinite:-CleanUp 0.00% resultant/univar 0.00% int:-Init 0.00% anames 100.00% protect 100.00% int:-ModuleApply 0.00% int/indefinite 0.00% int:-Exact 3.33% PackageManagement:-pmember 0.00% type/arctrig 66.67% Cache:-AddTemporary 0.00% Cache:-ModuleLoad 0.00% TypeTools:-known 100.00% unprotect 100.00% SolveTools:-LinearSolvers:-RationalSparse:-ModuleApply 0.00% `DEtools/DRNF`:-Gosper 0.00% tools/_Qn 5.56% forget:-ModuleApply 0.00% isolve 0.00% type/suffixed 25.71%
`DEtools/DRNF`:-MinimalLinearSpecialization 0.00% gcd/doit 0.00% SolveTools:-ModuleLoad 0.00% int/hyperexp 0.00% SolveTools:-LinearSolvers:-RationalSparse:-iprimpart 0.00% SolveTools:-LinearSolvers:-RationalSparse:-MBMSparseSolve 0.00% SolveTools:-ProcessArguments 0.00% SolveTools:-LinearSolvers:-RationalSparse:-RationalSparse 0.00% `DEtools/DRNF`:-PolynomialNormalForm 0.00% type/radalgfun 0.00% SolveTools:-LinearSolvers:-Rational 0.00% `DEtools/DRNF`:-GosperStep3 0.00% gcd 0.00% int:-EnvToOptions 10.00% factor 16.18% packages 0.00% IntegrationTools:-Initialize 0.00% diff/exp 0.00% type/builtin 0.00% forget:-do_unread 0.00% evala 2.56% resultant 0.00% collect/recursive 9.09% forget:-forget_proc 0.00% `DEtools/DRNF`:-IsHyperexponential 28.00% ListTools:-Reverse 0.00% subsindets 20.00% IntegrationTools:-Indefinite:-Main 0.00% int/tools/rename 0.00% SolveTools:-Engine:-OnLoad 0.00% index/FillInitVals 5.88% SolveTools:-Linear 0.00% IntegrationTools:-Indefinite:-CleanUp 0.00% resultant/univar 0.00% int:-Init 0.00% int:-ModuleApply 0.00% int/indefinite 0.00% int:-Exact 3.33% PackageManagement:-pmember 0.00% Cache:-AddTemporary 0.00% Cache:-ModuleLoad 0.00% SolveTools:-LinearSolvers:-RationalSparse:-ModuleApply 0.00% `DEtools/DRNF`:-Gosper 0.00% tools/_Qn 5.56% forget:-ModuleApply 0.00% isolve 0.00% type/suffixed 25.71%
collect 57.14% `DEtools/DRNF`:-MinimalLinearSpecialization 0.00% gcd/doit 0.00% SolveTools:-ModuleLoad 0.00% int/hyperexp 0.00% SolveTools:-LinearSolvers:-RationalSparse:-iprimpart 0.00% SolveTools:-LinearSolvers:-RationalSparse:-MBMSparseSolve 0.00% SolveTools:-ProcessArguments 0.00% SolveTools:-LinearSolvers:-RationalSparse:-RationalSparse 0.00% `DEtools/DRNF`:-PolynomialNormalForm 0.00% type/radalgfun 0.00% SolveTools:-LinearSolvers:-Rational 0.00% `DEtools/DRNF`:-GosperStep3 0.00% gcd 0.00% int:-EnvToOptions 10.00% factor 16.18% SolveTools:-CancelInverses 31.58% packages 0.00% IntegrationTools:-Initialize 0.00% diff/exp 0.00% type/builtin 0.00% forget:-do_unread 0.00% type/realcons 38.46% evala 2.56% resultant 0.00% collect/recursive 9.09% forget:-forget_proc 0.00% `DEtools/DRNF`:-IsHyperexponential 28.00% ListTools:-Reverse 0.00% subsindets 20.00% IntegrationTools:-Indefinite:-Main 0.00% int/tools/rename 0.00% SolveTools:-Engine:-OnLoad 0.00% index/FillInitVals 5.88% tools/gensym 66.67% SolveTools:-Linear 0.00% IntegrationTools:-Indefinite:-CleanUp 0.00% resultant/univar 0.00% int:-Init 0.00% int:-ModuleApply 0.00% int/indefinite 0.00% int:-Exact 3.33% PackageManagement:-pmember 0.00% type/arctrig 66.67% Cache:-AddTemporary 0.00% Cache:-ModuleLoad 0.00% SolveTools:-LinearSolvers:-RationalSparse:-ModuleApply 0.00% `DEtools/DRNF`:-Gosper 0.00% tools/_Qn 5.56% forget:-ModuleApply 0.00% isolve 0.00% type/suffixed 25.71%
See Also
CodeTools[Profiling], CodeTools[Profiling][Build], CodeTools[Profiling][Coverage], CodeTools[Profiling][GetProfileTable], CodeTools[Profiling][Merge], CodeTools[Profiling][Profile], CodeTools[Profiling][UnProfile]
Download Help Document