This is a static copy of a profile report

Home

refresh (10 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/refresh.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
clffunction10
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
27
set(h,'color',tmpcolor,'color'...
100 s0%
26
end
100 s0%
25
tmpcolor = [0 0 0];
100 s0%
24
else
100 s0%
22
if ~ischar(color) && a...
100 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 function27
Non-code lines (comments, blank lines)13
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 % $Revision: 5.11.4.6 $ $Date: 2009/02/18 02:18:36 $
9
10 10 if nargin==1,
10 11 if ~any(ishghandle(h, 'figure'))
12 error('MATLAB:refresh:InvalidHandle', ...
13 'Handle does not refer to a figure object')
14 end
15 else
16 h = gcf;
17 end
18
19 % The following toggle of the figure color property is
20 % only to set the 'dirty' flag to trigger a redraw.
10 21 color = get(h,'color');
10 22 if ~ischar(color) && all(color == [0 0 0])
23 tmpcolor = [1 1 1];
10 24 else
10 25 tmpcolor = [0 0 0];
10 26 end
10 27 set(h,'color',tmpcolor,'color',color);