This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
printing/private/printjobContentChangesfunction12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
49
allImage = findall(allContents...
120.024 s48.4%
51
allSurf = findall(allContents,...
120.020 s39.5%
56
if (~isempty(allImage) &&a...
120.004 s7.8%
60
end
120.001 s2.9%
57
(~isempty(allSurf) && ...
100.000 s0.5%
All other lines  0.000 s0.8%
Totals  0.050 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findallfunction240.041 s81.8%
...tEnhanceTextures.isTexturesUnderLimitclass method20.002 s4.2%
Self time (built-ins, overhead, etc.)  0.007 s14.0%
Totals  0.050 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function24
Non-code lines (comments, blank lines)16
Code lines (lines that can run)8
Code lines that did run8
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
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.