printEnhanceTextures>printEnhanceTextures.needEnhanceOutput (Calls: 12, Time: 0.050 s)
Generated 16-Jul-2020 17:09:22 using performance time.
class method in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/+matlab/+graphics/+internal/printEnhanceTextures.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
printing/private/printjobContentChanges | function | 12 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
49 | allImage = findall(allContents... | 12 | 0.024 s | 48.4% | |
51 | allSurf = findall(allContents,... | 12 | 0.020 s | 39.5% | |
56 | if (~isempty(allImage) &&a... | 12 | 0.004 s | 7.8% | |
60 | end | 12 | 0.001 s | 2.9% | |
57 | (~isempty(allSurf) && ... | 10 | 0.000 s | 0.5% | |
All other lines | 0.000 s | 0.8% | |||
Totals | 0.050 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
findall | function | 24 | 0.041 s | 81.8% | |
...tEnhanceTextures.isTexturesUnderLimit | class method | 2 | 0.002 s | 4.2% | |
Self time (built-ins, overhead, etc.) | 0.007 s | 14.0% | |||
Totals | 0.050 s | 100% |
Total lines in function | 24 |
Non-code lines (comments, blank lines) | 16 |
Code lines (lines that can run) | 8 |
Code lines that did run | 8 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
time | Calls | line | |
---|---|---|---|
37 | function result = needEnhanceOutput(obj, allContents) | ||
38 | % Check for low resolution texture quad. | ||
39 | % If present, then upsample texture output, otherwise output looks blurry in following cases: (g1487425) | ||
40 | % a) View eps/epsc output using mac preview app | ||
41 | % b) Import metafile output in word/ppt, then do ungroup | ||
42 | % | ||
43 | % Note: Currently, Image and Surface(Texturemap) objects are being drawn as texture primitive quad, | ||
44 | % may need to update findall logic in future for new objects (with texture quad) | ||
45 | |||
< 0.001 | 12 | 46 | result = false; |
47 | |||
48 | % Find image object | ||
0.024 | 12 | 49 | allImage = findall(allContents, '-depth', 0, 'Type', 'Image'); |
50 | % Find surface object with 'Texturemap' FaceColor | ||
0.020 | 12 | 51 | allSurf = findall(allContents, '-depth', 0, 'Type', 'Surface', '-and',... |
52 | 'FaceColor', 'Texturemap'); | ||
53 | |||
54 | % Ouput looks blurry under 10^5 CData size for Image object, and | ||
55 | % under 2^10 CData size for surface object | ||
0.004 | 12 | 56 | if (~isempty(allImage) && obj.isTexturesUnderLimit(allImage, obj.fImageLimit)) ||... |
10 | 57 | (~isempty(allSurf) && obj.isTexturesUnderLimit(allSurf, obj.fSurfLimit)) | |
< 0.001 | 2 | 58 | result = true; |
< 0.001 | 12 | 59 | end |
0.001 | 12 | 60 | end |
Other subfunctions in this file are not included in this listing.