This is a static copy of a profile report

Home

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

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
37
restoreExport(hg1data.oldTickL...
100.002 s65.7%
36
if isfield(hg1data, 'oldTickLi...
100.000 s7.1%
14
if pt.VersionNumber > 1
100.000 s5.8%
9
if pt.DebugMode
100.000 s5.1%
34
hg1data = pt.v1hgdata;
100.000 s3.6%
All other lines  0.000 s12.8%
Totals  0.003 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
printing/private/restoreExportfunction100.001 s49.7%
Self time (built-ins, overhead, etc.)  0.002 s50.3%
Totals  0.003 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function40
Non-code lines (comments, blank lines)19
Code lines (lines that can run)21
Code lines that did run9
Code lines that did not run12
Coverage (did run/can run)42.86 %
Function listing
time 
Calls 
 line
   1 
function ptrestorehg( pt, h )
   2 
%FORMAT Method that restores a Figure after formatting it for output.
   3 
%   Input of PrintTemplate object and a Figure to modify.
   4 
%   Figure has numerous properties restore to previous values modified
   5 
%   to account for template settings.
   6 

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

< 0.001 
     10 
   9
if pt.DebugMode 
  10 
    fprintf(getString(message('MATLAB:uistring:ptrestorehg:RestoringFigure', num2str(double(h)))));
  11 
    disp(pt); 
< 0.001 
     10 
  12
end 
  13 

< 0.001 
     10 
  14
if pt.VersionNumber > 1 
  15 
    hgdata = pt.v2hgdata;
  16 
    
  17 
    % Restore to all original values
  18 
    if isfield(hgdata, 'old') && ~isempty(hgdata.old)
  19 
        restoreExport(hgdata.old);
  20 
    end
  21 
    
  22 
    % Restore bkColor
  23 
    if isfield(hgdata, 'bkcolor')
  24 
        set(h, 'Color', hgdata.bkcolor);
  25 
    end
  26 
    
  27 
    % Restore bkcolormode
  28 
    if isfield(hgdata, 'bkcolormode')
  29 
        set(h, 'ColorMode', hgdata.bkcolormode);
  30 
    end
< 0.001 
     10 
  31
end 
  32 

  33 
% Restore Axes/Ruler Tick/Limit values
< 0.001 
     10 
  34
hg1data = pt.v1hgdata; 
  35 

< 0.001 
     10 
  36
if isfield(hg1data, 'oldTickLimit') 
  0.002 
     10 
  37
    restoreExport(hg1data.oldTickLimit); 
< 0.001 
     10 
  38
end 
  39 

< 0.001 
     10 
  40
end 

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