This is a static copy of a profile report

Home

getprinttemplate (12 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:16 using cpu time.
function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/graphics/getprinttemplate.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/validatefunction6
...PrintPath>LocalSetupContentChangessubfunction6
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
7
if ~isempty(pt)
120 s0%
6
pt = get(h, 'PrintTemplate');
120 s0%
All other lines  0 s0%
Totals  0 s0% 
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 run2
Code lines that did not run20
Coverage (did run/can run)9.09 %
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 

     12 
   6 
pt = get(h, 'PrintTemplate'); 
     12 
   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);
  31 
end

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