This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
print>@()restorepointers(pj)anonymous function40
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
15
if isfigure(pj.AllFigures), se...
400 s0%
14
case 1
400 s0%
12
case 0
400 s0%
11
switch length(pj.AllFigures)
400 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graphics/private/isfigurefunction400 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0 s0% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function21
Non-code lines (comments, blank lines)11
Code lines (lines that can run)10
Code lines that did run4
Code lines that did not run6
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