This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
scribe.legend.methods>lscansubfunction39
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
966
xk = interp1(xk,linspace(1,nx,...
40.033 s27.3%
952
xk = get(hLine,'Xdata');
390.033 s27.3%
953
yk = get(hLine,'Ydata');
390.022 s18.2%
961
zk(eithernan) = [];
390.011 s9.1%
958
eithernan = isnan(xk) | isnan(...
390.011 s9.1%
All other lines  0.011 s9.1%
Totals  0.120 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
interp1function120.033 s27.3%
linspacefunction120 s0%
Self time (built-ins, overhead, etc.)  0.087 s72.7%
Totals  0.120 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function21
Non-code lines (comments, blank lines)3
Code lines (lines that can run)18
Code lines that did run18
Code lines that did not run0
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.