Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
CodeTools[Profiling][Select] - select procedures from a table of profiling data
Calling Sequence
Select(selector, tab)
Parameters
selector
-
boolean valued procedure
tab
table of profiling data
Description
The Select(selector, tab) command is similar to the select function. The boolean valued procedure, selector, is called on each element in tab. A new table is returned containing only those elements of tab for which selector returns true.
The selector parameter is a procedure that accepts two arguments. The first argument is the encoded name (see EncodeName) of the procedure and the second is the rtable containing the profiling data.
Examples
selector := proc(n,t) # check the total number of function calls if (t[1][1] > 5) then return true; else return false; end if; end proc;
a := proc( ) return 1; end proc;
b := proc( ) local i; for i from 1 to 10 do a(); end do; end proc;
a a := proc() |Calls Seconds Words| PROC | 10 0.000 0| 1 | 10 0.000 0| return 1 end proc b b := proc() local i; |Calls Seconds Words| PROC | 1 0.000 0| 1 | 1 0.000 0| for i to 10 do 2 | 10 0.000 0| a() end do end proc
a a := proc() |Calls Seconds Words| PROC | 10 0.000 0| 1 | 10 0.000 0| return 1 end proc
See Also
CodeTools[EncodeName], CodeTools[Profiling], CodeTools[Profiling][Build], CodeTools[Profiling][GetProfileTable], CodeTools[Profiling][Merge], CodeTools[Profiling][PrintProfiles], CodeTools[Profiling][Remove], rtable, select
Download Help Document