printEnhanceTextures>printEnhanceTextures.needEnhanceOutput (Calls: 1, Time: 0.012 s)
Generated 02-May-2020 21:54:29 using performance time.
class method in file /Applications/MATLAB_R2018a.app/toolbox/matlab/graphics/+matlab/+graphics/+internal/printEnhanceTextures.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
graphics/private/printjobContentChanges | function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
49 | allImage = findall(allContents... | 1 | 0.004 s | 37.0% | |
51 | allSurf = findall(allContents,... | 1 | 0.004 s | 33.8% | |
56 | if (~isempty(allImage) &&a... | 1 | 0.003 s | 24.7% | |
60 | end | 1 | 0.000 s | 0.9% | |
46 | result = false; | 1 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 3.5% | |||
Totals | 0.012 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
findall | function | 2 | 0.007 s | 56.4% | |
...tEnhanceTextures.isTexturesUnderLimit | class method | 1 | 0.002 s | 14.3% | |
Self time (built-ins, overhead, etc.) | 0.003 s | 29.3% | |||
Totals | 0.012 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 | 7 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 87.50 % |
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 | 1 | 46 | result = false; |
47 | |||
48 | % Find image object | ||
0.004 | 1 | 49 | allImage = findall(allContents, '-depth', 0, 'Type', 'Image'); |
50 | % Find surface object with 'Texturemap' FaceColor | ||
0.004 | 1 | 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.003 | 1 | 56 | if (~isempty(allImage) && obj.isTexturesUnderLimit(allImage, obj.fImageLimit)) ||... |
57 | (~isempty(allSurf) && obj.isTexturesUnderLimit(allSurf, obj.fSurfLimit)) | ||
< 0.001 | 1 | 58 | result = true; |
< 0.001 | 1 | 59 | end |
< 0.001 | 1 | 60 | end |
Other subfunctions in this file are not included in this listing.