This is a static copy of a profile report

Home

Function details for graphics/private/modifyUnitsForPrint>updatePixelFontUnitsThis is a static copy of a profile report

Home

graphics/private/modifyUnitsForPrint>updatePixelFontUnits (Calls: 1, Time: 0.001 s)
Generated 02-May-2020 21:54:30 using performance time.
subfunction in file /Applications/MATLAB_R2018a.app/toolbox/matlab/graphics/private/modifyUnitsForPrint.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/modifyUnitsForPrintfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
202
hFontUnits = num2cell(hFontUni...
10.000 s42.8%
217
end
10.000 s0.3%
201
fontunitsPixels = {};
10.000 s0.1%
203
if ~isempty(hFontUnits)
10.000 s0.0%
All other lines  0.000 s56.8%
Totals  0.001 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
num2cellfunction10.000 s3.4%
Self time (built-ins, overhead, etc.)  0.001 s96.6%
Totals  0.001 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function19
Non-code lines (comments, blank lines)7
Code lines (lines that can run)12
Code lines that did run4
Code lines that did not run8
Coverage (did run/can run)33.33 %
Function listing
time 
Calls 
 line
 199 
function fontunitsPixels = updatePixelFontUnits(hFontUnits)
 200 

< 0.001 
      1 
 201
fontunitsPixels = {}; 
< 0.001 
      1 
 202
hFontUnits = num2cell(hFontUnits); 
< 0.001 
      1 
 203
if ~isempty(hFontUnits) 
 204 
    fontunitsPixels.handles = hFontUnits;
 205 
    fontunitsPixels.fontsize = cellfun(@(ph) get(ph, 'FontSize'), hFontUnits, 'UniformOutput', false);
 206 
    % save fontsize modes as well ...
 207 
    fontunitsPixels.fontsizemode = ...
 208 
        cellfun(@(ph) getPropMode(ph, 'FontSize'), hFontUnits, 'UniformOutput', false);    
 209 
    % save font units modes too ...
 210 
    fontunitsPixels.fontunitsmode = ...
 211 
        cellfun(@(ph) getPropMode(ph, 'FontUnits'), hFontUnits, 'UniformOutput', false);
 212 
    % set pixel fontunits to points
 213 
    cellfun(@(ph) set(ph, 'FontUnits', 'points'), fontunitsPixels.handles, ...
 214 
        'UniformOutput', false);
 215 
end
 216 

< 0.001 
      1 
 217
end 

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