This is a static copy of a profile report

Home

makeresampler>SampleKernel (1721 calls, 0.210 sec)
Generated 05-Nov-2014 07:53:13 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/makeresampler.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
makeresampler>StandardKernelsubfunction1721
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
361
positiveHalf = feval( kernel, ...
17210.160 s76.2%
360
n = floor(halfwidth * frequenc...
17210.020 s9.5%
357
if length(kernel) ~= 1 || ~isa...
17210.020 s9.5%
All other lines  0.010 s4.8%
Totals  0.210 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
makeresampler>LinearKernelsubfunction17210.110 s52.4%
Self time (built-ins, overhead, etc.)  0.100 s47.6%
Totals  0.210 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function7
Non-code lines (comments, blank lines)2
Code lines (lines that can run)5
Code lines that did run3
Code lines that did not run2
Coverage (did run/can run)60.00 %
Function listing
   time   calls  line
355 function positiveHalf = SampleKernel( kernel, halfwidth, frequency )
356
0.02 1721 357 if length(kernel) ~= 1 || ~isa(kernel,'function_handle')
358 error(message('images:makeresampler:invalidKernel'))
359 end
0.02 1721 360 n = floor(halfwidth * frequency);
0.16 1721 361 positiveHalf = feval( kernel, (halfwidth / n) * (0:n) );

Other subfunctions in this file are not included in this listing.