This is a static copy of a profile report

Home

rulerFunctions>parseFunctionName (Calls: 10, Time: 0.002 s)
Generated 18-May-2021 16:05:24 using performance time.
subfunction in file /usr/local/MATLAB/R2021a/toolbox/matlab/graphics/axis/+matlab/+graphics/+internal/+ruler/rulerFunctions.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
rulerFunctionsfunction10
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
233
case {'X','Y','Z'}
100.000 s21.2%
245
case 'lim'
100.000 s20.4%
231
axle = upper(func(1));
100.000 s14.4%
243
family = func(2:end);
100.000 s14.1%
234
ruler = ['Active' axle 'Ruler'...
100.000 s5.1%
All other lines  0.000 s24.8%
Totals  0.002 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
 227 
function [axle, ruler, family, prop, mode] = parseFunctionName(func)
 228 
% Parse the function name the user called and determine which ruler and
 229 
% property needs to be modified/queried.
 230 

< 0.001 
     10 
 231
axle = upper(func(1)); 
< 0.001 
     10 
 232
switch axle 
< 0.001 
     10 
 233
    case {'X','Y','Z'} 
< 0.001 
     10 
 234
        ruler = ['Active' axle 'Ruler']; 
 235 
    case 'T'
 236 
        axle = 'Theta';
 237 
        ruler = 'ThetaAxis';
 238 
        func = func(5:end);
 239 
    otherwise
 240 
        ruler = [axle 'Axis'];
< 0.001 
     10 
 241
end 
 242 

< 0.001 
     10 
 243
family = func(2:end); 
< 0.001 
     10 
 244
switch family 
< 0.001 
     10 
 245
    case 'lim' 
< 0.001 
     10 
 246
        ruler = ''; 
< 0.001 
     10 
 247
        prop = [axle 'Lim']; 
< 0.001 
     10 
 248
        mode = [axle 'LimMode']; 
 249 
    case 'ticks'
 250 
        prop = 'TickValues';
 251 
        mode = 'TickValuesMode';
 252 
    case 'ticklabels'
 253 
        prop = 'TickLabels';
 254 
        mode = 'TickLabelsMode';
 255 
    case 'tickangle'
 256 
        prop = 'TickLabelRotation';
 257 
        mode = 'TickLabelRotationMode';
 258 
    case 'tickformat'
 259 
        prop = 'TickLabelFormat';
 260 
        mode = '';
< 0.001 
     10 
 261
end 
 262 

< 0.001 
     10 
 263
end 

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