This is a static copy of a profile report

Home

print>LocalCreatePrintJob (Calls: 12, Time: 0.217 s)
Generated 16-Jul-2020 17:08:37 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/print.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
printfunction12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
102
pj = printjob([handles{:}]);
120.186 s85.8%
101
handles = checkArgsForHandleTo...
120.019 s8.5%
105
if isCharOrString(varargin{idx...
360.006 s2.6%
103
if ~pj.UseOriginalHGPrinting &...
120.003 s1.2%
100
varargin = convertStringToChar...
120.002 s0.7%
All other lines  0.002 s1.1%
Totals  0.217 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
printjobfunction120.180 s82.9%
printing/...te/checkArgsForHandleToPrintfunction120.016 s7.5%
isCharOrStringfunction360.002 s0.9%
convertStringToCharArgsfunction120.001 s0.5%
Self time (built-ins, overhead, etc.)  0.018 s8.2%
Totals  0.217 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function21
Non-code lines (comments, blank lines)3
Code lines (lines that can run)18
Code lines that did run12
Code lines that did not run6
Coverage (did run/can run)66.67 %
Function listing
time 
Calls 
 line
  94 
function [pj, varargin] = LocalCreatePrintJob(varargin)
  95 

  96 
import matlab.graphics.internal.*;
< 0.001 
     12 
  97
if ~nargin 
  98 
    varargin = {};
< 0.001 
     12 
  99
end 
  0.002 
     12 
 100
varargin = convertStringToCharArgs(varargin); 
  0.019 
     12 
 101
handles = checkArgsForHandleToPrint(0, varargin{:}); 
  0.186 
     12 
 102
pj = printjob([handles{:}]); 
  0.003 
     12 
 103
if ~pj.UseOriginalHGPrinting && ~isempty(varargin) 
< 0.001 
     12 
 104
    for idx = 1:length(varargin) 
  0.006 
     36 
 105
        if isCharOrString(varargin{idx}) && strcmp('-printjob', varargin{idx}) && ... 
 106 
                (idx+1) <= length(varargin)
 107 
            userSuppliedPJ = varargin{idx+1};
 108 
            pj = pj.updateFromPrintjob(userSuppliedPJ);
 109 
            varargin = {varargin{1:idx-1} varargin{idx+2:end}};
 110 
            break;
< 0.001 
     36 
 111
        end 
< 0.001 
     36 
 112
    end 
< 0.001 
     12 
 113
end 
< 0.001 
     12 
 114
end 

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