This is a static copy of a profile report

Home

refresh (3 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:18 using cpu time.
function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/graphics/refresh.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...erer/ensureRendererSettingConsistencynested function3
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
25
set(h,'color',tmpcolor,'color'...
30 s0%
24
end
30 s0%
23
tmpcolor = [0 0 0];
30 s0%
22
else
30 s0%
20
if ~ischar(color) && a...
30 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function25
Non-code lines (comments, blank lines)11
Code lines (lines that can run)14
Code lines that did run8
Code lines that did not run6
Coverage (did run/can run)57.14 %
Function listing
time 
calls 
 line
   1 
function refresh(h)
   2 
%REFRESH Refresh figure.
   3 
%   REFRESH causes the current figure window to be redrawn. 
   4 
%   REFRESH(FIG) causes the figure FIG to be redrawn.
   5 

   6 
%   D. Thomas   5/26/93
   7 
%   Copyright 1984-2009 The MathWorks, Inc.
   8 

      3 
   9 
if nargin==1, 
      3 
  10 
    if ~any(ishghandle(h, 'figure')) 
  11 
        error(message('MATLAB:refresh:InvalidHandle'))
  12 
    end
  13 
else
  14 
    h = gcf;
  15 
end
  16 

  17 
% The following toggle of the figure color property is
  18 
% only to set the 'dirty' flag to trigger a redraw.
      3 
  19 
color = get(h,'color'); 
      3 
  20 
if ~ischar(color) && all(color == [0 0 0]) 
  21 
    tmpcolor = [1 1 1];
      3 
  22 
else 
      3 
  23 
    tmpcolor = [0 0 0]; 
      3 
  24 
end 
      3 
  25 
set(h,'color',tmpcolor,'color',color);