This is a static copy of a profile report

Home

Function details for printEnhanceTextures>printEnhanceTextures.needEnhanceOutputThis is a static copy of a profile report

Home

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

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
49
allImage = findall(allContents...
10.004 s37.0%
51
allSurf = findall(allContents,...
10.004 s33.8%
56
if (~isempty(allImage) &&a...
10.003 s24.7%
60
end
10.000 s0.9%
46
result = false;
10.000 s0.0%
All other lines  0.000 s3.5%
Totals  0.012 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findallfunction20.007 s56.4%
...tEnhanceTextures.isTexturesUnderLimitclass method10.002 s14.3%
Self time (built-ins, overhead, etc.)  0.003 s29.3%
Totals  0.012 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 run7
Code lines that did not run1
Coverage (did run/can run)87.50 %
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 
      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.