This is a static copy of a profile report

Home

getprinttemplate (80 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:34 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/getprinttemplate.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
7
pt = get(h, 'PrintTemplate');
800.011 s100.0%
8
if ~isempty(pt)
800 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function32
Non-code lines (comments, blank lines)10
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 % $Revision: 1.3.4.6 $ $Date: 2008/12/15 08:52:47 $
6
0.01 80 7 pt = get(h, 'PrintTemplate');
80 8 if ~isempty(pt)
9 if isfield(pt,'VersionNumber')
10 ver = pt.VersionNumber;
11 else
12 ver = nan;
13 end
14 if isnan(ver)
15 ptnew = printtemplate;
16 ptnew.Name = pt.Name;
17 ptnew.FrameName = pt.FrameName;
18 if pt.DriverColor
19 ptnew.DriverColor = 1;
20 else
21 ptnew.DriverColor = 0;
22 end
23 ptnew.AxesFreezeTicks = pt.AxesFreezeTicks;
24 ptnew.AxesFreezeLimits = pt.AxesFreezeLimits;
25 pt = ptnew;
26 end
27 % Append the figure paper properties and header info without changing
28 % the VersionNumber since ptpreparehg and ptrestorehg perform a check
29 % that the VersionNumber is 2 (or more) for the new page layout
30 % PrintTemplate.
31 pt = appendPropsFromFigToPrintTemplate(pt,h);
32 end

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