This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
printfunction6
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
25
end
60 s0%
24
result = 0;
60 s0%
23
else
60 s0%
16
if strcmp('setup', pj.Driver)
60 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 function25
Non-code lines (comments, blank lines)15
Code lines (lines that can run)10
Code lines that did run4
Code lines that did not run6
Coverage (did run/can run)40.00 %
Function listing
time 
calls 
 line
   1 
function result = setup( pj )
   2 
%SETUP Open the printer setup dialog.
   3 
%   If the device driver in the PrintJob object is setup, opens the window
   4 
%   system specific dialog for setting options for printing. Normally this 
   5 
%   dialog will affect all future printing using the window system's driver
   6 
%   (i.e. Windows drivers), not just the current Figure or model.
   7 
%
   8 
%   Ex:
   9 
%      err_code = SETUP( pj ); %returns 1 if successfully opened setup
  10 
%                               dialog, 0 if not.
  11 
%
  12 
%   See also PRINT.
  13 

  14 
%   Copyright 1984-2012 The MathWorks, Inc.
  15 

      6 
  16 
if strcmp('setup', pj.Driver) 
  17 
    result = 1;
  18 
    if pj.UseOriginalHGPrinting
  19 
        hardcopy(pj.Handles{1}(1), '-dsetup');
  20 
    else
  21 
        result = 0;
  22 
    end
      6 
  23 
else 
      6 
  24 
    result = 0; 
      6 
  25 
end 

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