This is a static copy of a profile report

Home

newplotwrapper (Calls: 56, Time: 0.159 s)
Generated 16-Jul-2020 17:08:45 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/+matlab/+graphics/+internal/newplotwrapper.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
hhsave_VFI_3OCfunction56
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
11
axReturn = newplot(varargin{:}...
560.153 s96.1%
10
currentFigure = get(groot,'Cur...
560.005 s3.2%
14
if isempty(currentFigure)
560.000 s0.2%
16
end
560.000 s0.1%
All other lines  0.001 s0.3%
Totals  0.159 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
newplotfunction560.152 s95.6%
Self time (built-ins, overhead, etc.)  0.007 s4.4%
Totals  0.159 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function16
Non-code lines (comments, blank lines)11
Code lines (lines that can run)5
Code lines that did run4
Code lines that did not run1
Coverage (did run/can run)80.00 %
Function listing
time 
Calls 
 line
   1 
function axReturn = newplotwrapper(varargin)
   2 
% This undocumented helper function is for internal use.
   3 

   4 
%   Copyright 2018 The MathWorks, Inc.
   5 

   6 
% This wrapper function is intended to open the Default Interactions 
   7 
% InfoPanel once when the plot function is generating a new figure
   8 

   9 
% If there is already a gcf there is no need to show the InfoPanel
  0.005 
     56 
  10
currentFigure = get(groot,'CurrentFigure'); 
  0.153 
     56 
  11
axReturn = newplot(varargin{:}); 
  12 

  13 
% Maybe open the Interaction Info Panel if newplot created a new figure
< 0.001 
     56 
  14
if isempty(currentFigure) 
  15 
    matlab.graphics.internal.InteractionInfoPanel.maybeShow(axReturn);
< 0.001 
     56 
  16
end