This is a static copy of a profile report

Home

noanimate (80 calls, 0.153 sec)
Generated 05-Aug-2011 13:01:33 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/noanimate.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/preparehgfunction40
graphics/private/restorehgfunction40
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
35
h = [findobj(fig,'erasemode','...
400.131 s85.7%
33
set(0,'showhiddenhandles','on'...
400.011 s7.1%
57
end
400 s0%
56
end
400 s0%
55
set(orig.handles, {'erasemode'...
400 s0%
All other lines  0.011 s7.1%
Totals  0.153 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findobjfunction1200.131 s85.7%
Self time (built-ins, overhead, etc.)  0.022 s14.3%
Totals  0.153 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function57
Non-code lines (comments, blank lines)26
Code lines (lines that can run)31
Code lines that did run23
Code lines that did not run8
Coverage (did run/can run)74.19 %
Function listing
   time   calls  line
1 function noanimate( state, fig )
2 %NOANIMATE Modify figure to make all objects have normal erasemode.
3 % NOANIMATE SAVE changes the EraseMode property of all animated
4 % graphics objects in the current figure to 'normal', so they may be
5 % rendered into the Z-Buffer, and printed with TIFF.
6 %
7 % NOANIMATE RESTORE returns any previously changed objects'
8 % EraseMode properties to their original values.
9 %
10 % NOANIMATE(...,FIG) operates on the specified figure.
11 %
12 % See also PRINT.
13
14 % Copyright 1984-2009 The MathWorks, Inc.
15 % $Revision: 1.9.4.6 $ $Date: 2009/04/21 03:24:35 $
16
80 17 warning('MATLAB:noanimate:DeprecatedFunction', 'NOANIMATE will be removed in a future release.');
18
80 19 persistent NoAnimateOriginalEraseModes;
20
80 21 if nargin == 0 ...
22 || ~ischar( state ) ...
23 || ~(strcmp(state, 'save') || strcmp(state, 'restore'))
24 error('MATLAB:noanimate:MissingInformation', 'NOANIMATE needs to know if it should ''save'' or ''restore''')
80 25 elseif nargin ==1
26 fig = gcf;
27 end
28
80 29 if strcmp( state, 'save' )
30 %Get all objects we need to change,
31 %be careful about setting root property back.
40 32 hiddenH = get(0,'showhiddenhandles');
0.01 40 33 set(0,'showhiddenhandles','on');
40 34 try
0.13 40 35 h = [findobj(fig,'erasemode','xor');...
36 findobj(fig,'erasemode','none');...
37 findobj(fig,'erasemode','background')];
40 38 err = 0;
39 catch ex
40 err = 1;
41 end
40 42 set(0,'showhiddenhandles', hiddenH)
40 43 if err
44 rethrow(ex);
45 end
46
40 47 storage.handles = h;
40 48 storage.origModes = get(h, {'erasemode'});
40 49 set(h,'erasemode','normal');
40 50 NoAnimateOriginalEraseModes = [storage NoAnimateOriginalEraseModes];
40 51 else
40 52 if ~isempty(NoAnimateOriginalEraseModes)
40 53 orig = NoAnimateOriginalEraseModes(1);
40 54 NoAnimateOriginalEraseModes = NoAnimateOriginalEraseModes(2:end);
40 55 set(orig.handles, {'erasemode'}, orig.origModes);
40 56 end
40 57 end