This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
saveasfunction12
printing/private/inputcheckfunction24
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
33
postProcessPrinttables(pj, dev...
240.032 s74.4%
21
device_table = getDefaultDevic...
240.005 s11.2%
13
options = localBuildOptions;
360.002 s5.0%
17
options = postProcessPrinttabl...
120.002 s4.9%
18
return; %shortcircuit - no nee...
120.000 s1.0%
All other lines  0.002 s3.6%
Totals  0.044 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
printing/private/postProcessPrinttablesfunction360.033 s75.6%
printing/private/getDefaultDeviceListfunction240.004 s9.6%
printtables>localBuildOptionssubfunction360.002 s3.9%
Self time (built-ins, overhead, etc.)  0.005 s10.9%
Totals  0.044 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function34
Non-code lines (comments, blank lines)22
Code lines (lines that can run)12
Code lines that did run11
Code lines that did not run1
Coverage (did run/can run)91.67 %
Function listing
time 
Calls 
 line
   1 
function [ options, devices, extensions, classes, colorDevs, destinations, descriptions, clipsupport] = printtables( pj ) 
   2 
%PRINTTABLES Method to create cell arrays of data on drivers and options available.
   3 
%   Tables are for use in input validation of arguments to PRINT command.
   4 
%
   5 
%   See also PRINT
   6 

   7 
%   Copyright 1984-2015 The MathWorks, Inc.
   8 

< 0.001 
     36 
   9
if ~nargin 
  10 
    pj = printjob();
< 0.001 
     36 
  11
end 
  12 

  0.002 
     36 
  13
options = localBuildOptions; 
< 0.001 
     36 
  14
if nargout == 1 
  15 
    % passing in an empty device table since we're not going to use it in
  16 
    % this context.
  0.002 
     12 
  17
    options = postProcessPrinttables(pj, [], options); 
< 0.001 
     12 
  18
    return; %shortcircuit - no need to do the rest  
< 0.001 
     24 
  19
end 
  20 

  0.005 
     24 
  21
device_table = getDefaultDeviceList(); 
  22 

  23 
%Set them in table as cell arrays of cell arrays for convenience of entry,
  24 
%now break them up into individual cell arrays for ease of use.
  25 
%devices = device_table(:, 1 );
  26 
%extensions = device_table(:, 2 );
  27 
%classes = device_table(:, 3 );
  28 
%colorDevs = device_table(:, 4 );
  29 
%destinations = device_table(:, 5 );
  30 
%descriptions = device_table(:, 6 );
  31 
%clipsupport = device_table(:, 7);
  0.032 
     24 
  32
[options, devices, extensions, classes, colorDevs, destinations, descriptions, clipsupport] = ... 
     24 
  33
    postProcessPrinttables(pj, device_table, options); 
< 0.001 
     24 
  34
end 

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