This is a static copy of a profile reportHome
get_levels (3 calls, 0.063 sec)
Generated 15-Mar-2007 12:01:44 using real time.
M-function in file c:\mind07\get_levels.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
7 | L1=[L1,g]; | 2792 | 0.031 s | 50.0% |  |
6 | if l==1 | 3386 | 0.031 s | 50.0% |  |
16 | end | 3386 | 0 s | 0% |  |
14 | end | 60 | 0 s | 0% |  |
13 | L4=[L4,g]; | 60 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.063 s | 100% | |
Children (called functions)
No childrenM-Lint results
Line number | Message |
1 | Extra semicolon is unnecessary. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 17 |
Non-code lines (comments, blank lines) | 4 |
Code lines (lines that can run) | 13 |
Code lines that did run | 13 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function [L1,L2,L3,L4]=get_levels(G);
2 %computes G-sets for level=1,1...
3 3 r=length(G);L1=[];L2=[];L3=[];L4=[];
3 4 for g=1:r
3386 5 l=G(g).level;
0.03 3386 6 if l==1
0.03 2792 7 L1=[L1,g];
594 8 elseif l==2
480 9 L2=[L2,g];
114 10 elseif l==3
48 11 L3=[L3,g];
66 12 elseif l==4
60 13 L4=[L4,g];
60 14 end
15
3386 16 end
17