This is a static copy of a profile reportHome
scribe.legend.methods>localGetLineData (39 calls, 0.120 sec)
Generated 05-Aug-2011 13:00:54 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@legend/methods.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 |
966 | xk = interp1(xk,linspace(1,nx,... | 4 | 0.033 s | 27.3% |  |
952 | xk = get(hLine,'Xdata'); | 39 | 0.033 s | 27.3% |  |
953 | yk = get(hLine,'Ydata'); | 39 | 0.022 s | 18.2% |  |
961 | zk(eithernan) = []; | 39 | 0.011 s | 9.1% |  |
958 | eithernan = isnan(xk) | isnan(... | 39 | 0.011 s | 9.1% |  |
All other lines | | | 0.011 s | 9.1% |  |
Totals | | | 0.120 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
interp1 | function | 12 | 0.033 s | 27.3% |  |
linspace | function | 12 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.087 s | 72.7% |  |
Totals | | | 0.120 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 21 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 18 |
Code lines that did run | 18 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
949 function [xk,yk,zk] = localGetLineData(hLine)
950 % Returns data information regarding a line.
951
0.03 39 952 xk = get(hLine,'Xdata');
0.02 39 953 yk = get(hLine,'Ydata');
39 954 zk = get(hLine,'Zdata');
39 955 if isempty(zk)
0.01 39 956 zk = zeros(size(xk));
39 957 end
0.01 39 958 eithernan = isnan(xk) | isnan(yk) | isnan(zk);
39 959 xk(eithernan) = [];
39 960 yk(eithernan) = [];
0.01 39 961 zk(eithernan) = [];
39 962 nx = length(xk);
39 963 ny = length(yk);
39 964 nz = length(zk);
39 965 if nx < 100 && nx > 1 && ny < 100 && ny > 1
0.03 4 966 xk = interp1(xk,linspace(1,nx,200));
4 967 yk = interp1(yk,linspace(1,ny,200));
4 968 zk = interp1(zk,linspace(1,nz,200));
4 969 end
Other subfunctions in this file are not included in this listing.