This is a static copy of a profile report

Home

fitOneOverF>residual (146226 calls, 18.690 sec)
Generated 05-Aug-2011 13:03:54 using cpu time.
nested function in file /home/LeechJ/cbass_analysis/reduc/fitOneOverF.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
fitOneOverF>@(y)residual(y)anonymous function146226
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
84
logFitSpectrum=log(oneOverFSpe...
14622614.362 s76.8%
86
r=sum(difference .* difference...
1462261.432 s7.7%
85
difference = (logFitSpectrum -...
1462260.590 s3.2%
93
end
1462260.514 s2.7%
87
if (y(2)<0 || y(2)>fs) 
1462260.142 s0.8%
All other lines  1.650 s8.8%
Totals  18.690 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
fitOneOverF>oneOverFSpectrumsubfunction14622611.269 s60.3%
Self time (built-ins, overhead, etc.)  7.421 s39.7%
Totals  18.690 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function11
Non-code lines (comments, blank lines)1
Code lines (lines that can run)10
Code lines that did run6
Code lines that did not run4
Coverage (did run/can run)60.00 %
Function listing
   time   calls  line
83 function r = residual(y)
14.36 146226 84 logFitSpectrum=log(oneOverFSpectrum(f,y));
0.59 146226 85 difference = (logFitSpectrum - logP) - 0.5772156649015328606065;
1.43 146226 86 r=sum(difference .* difference);
0.14 146226 87 if (y(2)<0 || y(2)>fs)
88 r=r+1e30;
89 end
0.12 146226 90 if (y(3)<0)
91 r=r+1e30;
92 end
0.51 146226 93 end

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