This is a static copy of a profile report

Home

printtemplate (Calls: 12, Time: 0.002 s)
Generated 16-Jul-2020 17:09:29 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/printtemplate.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
46
pt.Tag = 'printtemplate';    %...
120.000 s10.3%
19
pt.VersionNumber = 1.0;
120.000 s6.5%
39
pt.DPI = 0;                 %R...
120.000 s4.4%
21
pt.Name = '';               %N...
120.000 s4.3%
29
pt.AxesFreezeLimits = 0;    %T...
120.000 s3.9%
All other lines  0.002 s70.7%
Totals  0.002 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function46
Non-code lines (comments, blank lines)21
Code lines (lines that can run)25
Code lines that did run23
Code lines that did not run2
Coverage (did run/can run)92.00 %
Function listing
time 
Calls 
 line
   1 
function pt = printtemplate( varargin )
   2 
%PRINTTEMPLATE Constructor for PrintTemplate objects.
   3 
%   PrintTemplate is an object used to encapsulate settings and methods
   4 
%   to format Figures and models during output. This constructor defines
   5 
%   each class variable and supplies default values. Methods of this object
   6 
%   will be called during the export process to manipulate Handle Graphics
   7 
%   and Simulink model properties to achieve the desired output.
   8 
%
   9 
%   See also PRINT, @PRINTJOB.
  10 

  11 
%   Copyright 1984-2002 The MathWorks, Inc. 
  12 

< 0.001 
     12 
  13
if nargin == 1 && (isa(varargin{1}, 'printtemplate') || isstruct(varargin{1})) 
  14 
    %Copy creation
  15 
    pt = varargin{1};
  16 
    return
< 0.001 
     12 
  17
end 
  18 

< 0.001 
     12 
  19
pt.VersionNumber = 1.0; 
  20 

< 0.001 
     12 
  21
pt.Name = '';               %Name for this template 
< 0.001 
     12 
  22
pt.FrameName = '';          %Name of printframe, if any, to use 
  23 

  24 
%Lines and Text objects do not look good dithered, user can ask for them not to be.
< 0.001 
     12 
  25
pt.DriverColor = 0;         %True if want Lines and Text left in color 
  26 

< 0.001 
     12 
  27
pt.AxesFreezeTicks = 0;     %True if Axes output with same tick marks as on screen 
< 0.001 
     12 
  28
pt.tickState = {};          %Cell array of Axes handles and XYZtickMode values 
< 0.001 
     12 
  29
pt.AxesFreezeLimits = 0;    %True if Axes output with same limits as on screen 
< 0.001 
     12 
  30
pt.limState = {};           %Cell array of Axes handles and XYZlimMode values 
  31 

< 0.001 
     12 
  32
pt.Loose = 0;               %Use loose bounding box for PS and Ghostscript drivers 
< 0.001 
     12 
  33
pt.CMYK = 0;                %Use CMYK colors in PS and Ghostscript drivers instead of RGB 
< 0.001 
     12 
  34
pt.Append = 0;              %Append to existing PS file without overwriting 
< 0.001 
     12 
  35
pt.Adobecset = 0;           %Use Adobe PS default character set encoding 
< 0.001 
     12 
  36
pt.PrintUI = 1;             %Print user interface controls 
< 0.001 
     12 
  37
pt.Renderer = 'auto';       %Print using a specific renderer 
< 0.001 
     12 
  38
pt.ResolutionMode = 'auto'; %Print using a specified resolution 
< 0.001 
     12 
  39
pt.DPI = 0;                 %Resolution to use when ResolutionMode is 'manual' 
< 0.001 
     12 
  40
pt.FileName = 'untitled';   %The name last used to save this object to disk 
< 0.001 
     12 
  41
pt.Destination = 'printer'; %'file' | 'printer'; where last PRINT command exported object 
  42 
                            %Gets name of last printer used from appdata, or preferences when available
< 0.001 
     12 
  43
pt.PrintDriver = '';        %Driver used when this Figure was last printed 
  44 

< 0.001 
     12 
  45
pt.DebugMode = 0;           %Boolean true to output diagnostics while printing. 
< 0.001 
     12 
  46
pt.Tag = 'printtemplate';    %Use for printtemplate identification 

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