This is a static copy of a profile report

Home

useOriginalHGPrinting (Calls: 68, Time: 1.159 s)
Generated 16-Jul-2020 17:09:13 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/+matlab/+graphics/+internal/useOriginalHGPrinting.m
Copy to new window for comparing multiple runs

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
23
if ~all(ishghandle(varargin{1}...
681.154 s99.6%
22
check.Handles = varargin(1);
680.002 s0.2%
14
if nargin && ~isempty(...
680.002 s0.1%
32
end
680.001 s0.0%
26
useOrig = false;
680.000 s0.0%
All other lines  0.001 s0.0%
Totals  1.159 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
isSLorSFfunction681.152 s99.4%
Self time (built-ins, overhead, etc.)  0.007 s0.6%
Totals  1.159 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function32
Non-code lines (comments, blank lines)21
Code lines (lines that can run)11
Code lines that did run8
Code lines that did not run3
Coverage (did run/can run)72.73 %
Function listing
time 
Calls 
 line
   1 
function useOrig = useOriginalHGPrinting( varargin ) 
   2 
% This undocumented helper function is for internal use.
   3 

   4 
%USEORIGINALHGPRINTING checks for HG objects and isSLorSF to see whether to 
   5 
% use "Original" or "Latest" printing
   6 
%
   7 
%   Ex:
   8 
%      useOriginal = USEORIGINALHGPRINTING();
   9 
%
  10 
%   See also PRINT, PRINTOPT, INPUTCHECK, VALIDATE.
  11 

  12 
%   Copyright 2008-2020 The MathWorks, Inc.
  13 

  0.002 
     68 
  14
    if nargin && ~isempty(varargin{1}) 
  15 
        % if given something to print, check it
  16 
        % only HG objects go through new print pipeline. 
  17 
        % Stateflow, even with a figure that use the new MATLAB graphics 
  18 
        %   system introduced in Release 2014b, goes through their own 
  19 
        %   printing pipeline.
  20 
        %   the figure itself isn't printed; there's a "portal" object that 
  21 
        %   holds a reference to a chart that is.
  0.002 
     68 
  22
        check.Handles = varargin(1); 
  1.154 
     68 
  23
        if ~all(ishghandle(varargin{1})) || matlab.graphics.internal.isSLorSF(check) 
  24 
           useOrig = true;
< 0.001 
     68 
  25
        else 
< 0.001 
     68 
  26
           useOrig = false; 
< 0.001 
     68 
  27
        end  
  28 
    else
  29 
        % no args, or an empty arg list
  30 
        useOrig = false;
< 0.001 
     68 
  31
    end 
< 0.001 
     68 
  32
end 

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