This is a static copy of a profile reportHome
convertFlagToDataSize>convSubFunc (37 calls, 2.940 sec)
Generated 05-Aug-2011 13:00:39 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/flag/convertFlagToDataSize.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 |
63 | thisFlag(:,5:20) = repmat(ori... | 10 | 0.853 s | 29.0% |  |
64 | thisFlag(:,21:24) = repmat(ori... | 10 | 0.634 s | 21.6% |  |
58 | thisFlag(:,3:8) = repmat(orig... | 21 | 0.503 s | 17.1% |  |
59 | thisFlag(:,9:10) = repmat(orig... | 21 | 0.262 s | 8.9% |  |
62 | thisFlag(:,1:4) = repmat(ori... | 10 | 0.230 s | 7.8% |  |
All other lines | | | 0.459 s | 15.6% |  |
Totals | | | 2.940 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
repmat | function | 99 | 0.732 s | 24.9% |  |
Self time (built-ins, overhead, etc.) | | | 2.208 s | 75.1% |  |
Totals | | | 2.940 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 37 |
Non-code lines (comments, blank lines) | 17 |
Code lines (lines that can run) | 20 |
Code lines that did run | 17 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 85.00 % |
Function listing
time calls line
34 function sizedFlags = convSubFunc(origFlag, NUMDIMS)
35
36 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
37 %
38 % function sizedFlags = cloneSubFunc(origFlag, USER, NUMDIMS)
39 %
40 %
41 % subfunction that gets all the flag data in the right size for the plots
42 %
43 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
44
37 45 switch NUMDIMS
37 46 case 6
0.03 6 47 thisFlag(:,1) = origFlag(:,1);
0.14 6 48 thisFlag(:,2:5) = repmat(origFlag(:,2), [1 4]);
0.08 6 49 thisFlag(:,6) = origFlag(:,3);
50
31 51 case 8
52 thisFlag(:,1) = origFlag(:,1);
53 thisFlag(:,2:7) = repmat(origFlag(:,2), [1 6]);
54 thisFlag(:,8) = origFlag(:,3);
55
31 56 case 10
0.19 21 57 thisFlag(:,1:2) = repmat(origFlag(:,1), [1 2]);
0.50 21 58 thisFlag(:,3:8) = repmat(origFlag(:,2), [1 6]);
0.26 21 59 thisFlag(:,9:10) = repmat(origFlag(:,3), [1 2]);
60
10 61 case 24
0.23 10 62 thisFlag(:,1:4) = repmat(origFlag(:,1), [1 4]);
0.85 10 63 thisFlag(:,5:20) = repmat(origFlag(:,2), [1 16]);
0.63 10 64 thisFlag(:,21:24) = repmat(origFlag(:,3), [1 4]);
65
10 66 end
67
37 68 sizedFlags = thisFlag;
69
0.01 37 70 return;
Other subfunctions in this file are not included in this listing.