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
Function Name | Function Type | Calls |
graphics/private/modifyUnitsForPrint | function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
202 | hFontUnits = num2cell(hFontUni... | 1 | 0.000 s | 42.8% | |
217 | end | 1 | 0.000 s | 0.3% | |
201 | fontunitsPixels = {}; | 1 | 0.000 s | 0.1% | |
203 | if ~isempty(hFontUnits) | 1 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 56.8% | |||
Totals | 0.001 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
num2cell | function | 1 | 0.000 s | 3.4% | |
Self time (built-ins, overhead, etc.) | 0.001 s | 96.6% | |||
Totals | 0.001 s | 100% |
Total lines in function | 19 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 12 |
Code lines that did run | 4 |
Code lines that did not run | 8 |
Coverage (did run/can run) | 33.33 % |
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.