This is a static copy of a profile report

Home

getprinttemplate (Calls: 24, Time: 0.003 s)
Generated 16-Jul-2020 17:09:16 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/getprinttemplate.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
6
pt = get(h, 'PrintTemplate');
240.003 s83.8%
31
end
240.000 s2.2%
7
if ~isempty(pt)
240.000 s0.3%
All other lines  0.000 s13.7%
Totals  0.003 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function31
Non-code lines (comments, blank lines)9
Code lines (lines that can run)22
Code lines that did run3
Code lines that did not run19
Coverage (did run/can run)13.64 %
Function listing
time 
Calls 
 line
   1 
function pt = getprinttemplate( h )
   2 
%GETPRINTTEMPLATE Get a figure's PrintTemplate
   3 

   4 
%   Copyright 1984-2008 The MathWorks, Inc.
   5 

  0.003 
     24 
   6
pt = get(h, 'PrintTemplate'); 
< 0.001 
     24 
   7
if ~isempty(pt) 
   8 
  if isfield(pt,'VersionNumber')
   9 
    ver = pt.VersionNumber;
  10 
  else
  11 
    ver = nan;
  12 
  end
  13 
  if isnan(ver)
  14 
    ptnew = printtemplate;
  15 
    ptnew.Name = pt.Name;
  16 
    ptnew.FrameName = pt.FrameName;
  17 
    if pt.DriverColor
  18 
      ptnew.DriverColor = 1;
  19 
    else
  20 
      ptnew.DriverColor = 0;
  21 
    end
  22 
    ptnew.AxesFreezeTicks = pt.AxesFreezeTicks;
  23 
    ptnew.AxesFreezeLimits = pt.AxesFreezeLimits;
  24 
    pt = ptnew;
  25 
  end
  26 
  % Append the figure paper properties and header info without changing
  27 
  % the VersionNumber since ptpreparehg and ptrestorehg perform a check
  28 
  % that the VersionNumber is 2 (or more) for the new page layout 
  29 
  % PrintTemplate.
  30 
  pt = appendPropsFromFigToPrintTemplate(pt,h);
< 0.001 
     24 
  31
end 

Other subfunctions in this file are not included in this listing.