This is a static copy of a profile report

Home

imresize>parseParamValuePairs (82820 calls, 2.874 sec)
Generated 05-Nov-2014 07:53:33 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/imresize.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
imresize>parseInputssubfunction82820
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
491
params = params_in;
828200.601 s20.9%
493
if isempty(first_param_string)
828200.511 s17.8%
494
return
828200.381 s13.2%
All other lines  1.382 s48.1%
Totals  2.874 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function43
Non-code lines (comments, blank lines)18
Code lines (lines that can run)25
Code lines that did run3
Code lines that did not run22
Coverage (did run/can run)12.00 %
Function listing
   time   calls  line
489 function params = parseParamValuePairs(params_in, args, first_param_string)
490
0.60 82820 491 params = params_in;
492
0.51 82820 493 if isempty(first_param_string)
0.38 82820 494 return
495 end
496
497 if rem(numel(args) - first_param_string, 2) == 0
498 error(message('images:imresize:oddNumberArgs'));
499 end
500
501 % Originally implemented valid_params and param_check_fcns as a
502 % structure which was accessed using dynamic field reference. Changed
503 % to separate cell arrays as a performance optimization. -SLE,
504 % 31-Oct-2006
505 valid_params = {'Scale', 'Colormap', 'Dither', 'OutputSize', ...
506 'Method', 'Antialiasing'};
507
508 param_check_fcns = {@processScaleParam, @processColormapParam, ...
509 @processDitherParam, @processOutputSizeParam, ...
510 @processMethodParam, @processAntialiasingParam};
511
512 for k = first_param_string:2:numel(args)
513 param_string = args{k};
514 if ~ischar(param_string)
515 error(message('images:imresize:expectedParamString', k));
516 end
517
518 idx = find(strncmpi(param_string, valid_params, numel(param_string)));
519 num_matches = numel(idx);
520 if num_matches == 0
521 error(message('images:imresize:unrecognizedParamString', param_string));
522
523 elseif num_matches > 1
524 error(message('images:imresize:ambiguousParamString', param_string));
525
526 else
527 check_fcn = param_check_fcns{idx};
528 params = check_fcn(args{k+1}, params);
529
530 end
531 end

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