This is a static copy of a profile report

Home

mltimerpackage (6 calls, 0.000 sec)
Generated 15-Mar-2007 12:01:49 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\iofun\mltimerpackage.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
@timer\private\deleteAsyncM-function2
timer.timerM-function4
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
34
output = length(List);
20 s0%
33
elseif strcmpi(option, 'Count'...
20 s0%
32
List(indices) = [];			
20 s0%
31
indices = find(List == orig);
20 s0%
30
len = length(orig);
20 s0%
Other lines & overhead  0 s0%
Totals  0.000 s0% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
com.mathworks.timer.TimerTaskJava-method10 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.000 s0% 
M-Lint results
Line numberMessage
30The value assigned here to variable 'len' might never be used.
32Logical indexing is usually faster than FIND.
Coverage results
[ Show coverage for parent directory ]
Total lines in file38
Non-code lines (comments, blank lines)8
Code lines (lines that can run)30
Code lines that did run23
Code lines that did not run7
Coverage (did run/can run)76.67 %
Function listing
   time   calls  line
1 function [output] = mltimerpackage(option, varargin)
2
3 % Copyright 2004 The MathWorks, Inc.
4
6 5 mlock;
6
6 7 persistent List;
6 8 if isempty(List)
1 9 List = handle(com.mathworks.timer.TimerTask);
1 10 end
11
6 12 if (~ischar(option))
13 error('MATLAB:mltimerpackage:IllegalFirstArg', 'First argument must be a string');
14 end
15
6 16 if strcmpi(option,'GetList')
17 output = List;
18 return;
6 19 elseif strcmpi(option, 'Add')
2 20 orig = varargin{1};
2 21 len = length(orig);
2 22 for i = 1:len
2 23 if isa(orig(i),'javahandle.com.mathworks.timer.TimerTask')
2 24 List(end+1) = orig(i);
2 25 end
2 26 end
2 27 return;
4 28 elseif strcmpi(option, 'Delete')
2 29 orig = varargin{1};
2 30 len = length(orig);
2 31 indices = find(List == orig);
2 32 List(indices) = [];
2 33 elseif strcmpi(option, 'Count')
2 34 output = length(List);
35 else
36 error('MATLAB:mltimerpackage:UnknownFirstArg', 'Unknown Option');
37 end
38