This is a static copy of a profile reportHome
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)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
34 | output = length(List); | 2 | 0 s | 0% |  |
33 | elseif strcmpi(option, 'Count'... | 2 | 0 s | 0% |  |
32 | List(indices) = []; | 2 | 0 s | 0% |  |
31 | indices = find(List == orig); | 2 | 0 s | 0% |  |
30 | len = length(orig); | 2 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 0% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
com.mathworks.timer.TimerTask | Java-method | 1 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.000 s | 0% | |
M-Lint results
Line number | Message |
30 | The value assigned here to variable 'len' might never be used. |
32 | Logical indexing is usually faster than FIND. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 38 |
Non-code lines (comments, blank lines) | 8 |
Code lines (lines that can run) | 30 |
Code lines that did run | 23 |
Code lines that did not run | 7 |
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