This is a static copy of a profile reportHome
graphics/private/restorepointers (40 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:34 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/restorepointers.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
15 | if isfigure(pj.AllFigures), se... | 40 | 0 s | 0% |  |
14 | case 1 | 40 | 0 s | 0% |  |
12 | case 0 | 40 | 0 s | 0% |  |
11 | switch length(pj.AllFigures) | 40 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
graphics/private/isfigure | function | 40 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 21 |
Non-code lines (comments, blank lines) | 11 |
Code lines (lines that can run) | 10 |
Code lines that did run | 4 |
Code lines that did not run | 6 |
Coverage (did run/can run) | 40.00 % |
Function listing
time calls line
1 function restorepointers( pj )
2 %RESTOREPOINTERS Restore Pointers of all open Figures.
3 % PREPAREPOINTERS previously set all Figure Pointers to Watch.
4 %
5 % See also PREPAREPOINTERS.
6
7 % Copyright 1984-2009 The MathWorks, Inc.
8 % $Revision: 1.4.4.1 $ $Date: 2009/06/22 14:36:48 $
9
10 %Make sure we set pointer(s) back even if we are erroring out.
40 11 switch length(pj.AllFigures)
40 12 case 0
13 %NOP
40 14 case 1
40 15 if isfigure(pj.AllFigures), set( pj.AllFigures, 'pointer', pj.AllPointers ); end;
16 otherwise,
17 m = isfigure(pj.AllFigures);
18 pj.AllFigures = pj.AllFigures(m); % remove bad handles
19 pj.AllPointers = pj.AllPointers(m);
20 set( pj.AllFigures, {'pointer'}, pj.AllPointers );
21 end