This is a static copy of a profile report

Home

rulerFunctions>parseFunctionName (Calls: 2, Time: 0.001 s)
Generated 16-Jul-2020 17:10:14 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/axis/+matlab/+graphics/+internal/+ruler/rulerFunctions.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
rulerFunctionsfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
232
case 'lim'
20.000 s31.5%
220
case {'X','Y','Z'}
20.000 s24.6%
230
family = func(2:end);
20.000 s10.8%
218
axle = upper(func(1));
20.000 s8.9%
221
ruler = ['Active' axle 'Ruler'...
20.000 s1.6%
All other lines  0.000 s22.5%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function37
Non-code lines (comments, blank lines)6
Code lines (lines that can run)31
Code lines that did run13
Code lines that did not run18
Coverage (did run/can run)41.94 %
Function listing
time 
Calls 
 line
 214 
function [axle, ruler, family, prop, mode] = parseFunctionName(func)
 215 
% Parse the function name the user called and determine which ruler and
 216 
% property needs to be modified/queried.
 217 

< 0.001 
      2 
 218
axle = upper(func(1)); 
< 0.001 
      2 
 219
switch axle 
< 0.001 
      2 
 220
    case {'X','Y','Z'} 
< 0.001 
      2 
 221
        ruler = ['Active' axle 'Ruler']; 
 222 
    case 'T'
 223 
        axle = 'Theta';
 224 
        ruler = 'ThetaAxis';
 225 
        func = func(5:end);
 226 
    otherwise
 227 
        ruler = [axle 'Axis'];
< 0.001 
      2 
 228
end 
 229 

< 0.001 
      2 
 230
family = func(2:end); 
< 0.001 
      2 
 231
switch family 
< 0.001 
      2 
 232
    case 'lim' 
< 0.001 
      2 
 233
        ruler = ''; 
< 0.001 
      2 
 234
        prop = [axle 'Lim']; 
< 0.001 
      2 
 235
        mode = [axle 'LimMode']; 
 236 
    case 'ticks'
 237 
        prop = 'TickValues';
 238 
        mode = 'TickValuesMode';
 239 
    case 'ticklabels'
 240 
        prop = 'TickLabels';
 241 
        mode = 'TickLabelsMode';
 242 
    case 'tickangle'
 243 
        prop = 'TickLabelRotation';
 244 
        mode = 'TickLabelRotationMode';
 245 
    case 'tickformat'
 246 
        prop = 'TickLabelFormat';
 247 
        mode = '';
< 0.001 
      2 
 248
end 
 249 

< 0.001 
      2 
 250
end 

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