This is a static copy of a profile report

Home

reduceData>matchRev (1 call, 0.033 sec)
Generated 05-Aug-2011 13:00:29 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/reduceData.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
reduceDatafunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
380
if (searchStruct(parm,{'rev','...
10.033 s100.0%
403
return;
10 s0%
401
end
10 s0%
396
if (~q)
10 s0%
395
q=version==floor(str2num(rev))...
10 s0%
All other lines  0 s0%
Totals  0.033 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
searchStructfunction10.022 s66.7%
str2numfunction10 s0%
Self time (built-ins, overhead, etc.)  0.011 s33.3%
Totals  0.033 s100% 
Code Analyzer results
Line numberMessage
395STR2DOUBLE is faster than STR2NUM; however, STR2DOUBLE operates only on scalars. Use the function that best suits your needs.
397DISP(SPRINTF(...)) can usually be replaced by FPRINTF(...).
Coverage results
[ Show coverage for parent directory ]
Total lines in function27
Non-code lines (comments, blank lines)7
Code lines (lines that can run)20
Code lines that did run8
Code lines that did not run12
Coverage (did run/can run)40.00 %
Function listing
   time   calls  line
377 function q=matchRev(parm,rev)
378
379
0.03 1 380 if (searchStruct(parm,{'rev','version'}))
381 % compare only major number
1 382 version=floor(parm.rev.version);
383 else
384 version=NaN;
385 end
386
1 387 if (isnan(version))
388 disp(' ')
389 disp('Script require unknown REV')
390 disp('Continuing....')
391 q=1;
392 pause(1)
393 return
1 394 else
1 395 q=version==floor(str2num(rev));
1 396 if (~q)
397 disp(sprintf('Script requires Redrum Major Version %s',...
398 num2str(version)));
399 pause(1)
400 end
1 401 end
402
1 403 return;

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