This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
printfunction40
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
16
pj.AllFigures = findall(0,'typ...
400.033 s100.0%
20
end
400 s0%
19
set( pj.AllFigures, 'pointer',...
400 s0%
18
pj.AllPointers = get( pj.AllFi...
400 s0%
17
if length(pj.AllFigures) > ...
400 s0%
All other lines  0 s0%
Totals  0.033 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findallfunction400.033 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.033 s100% 
Code Analyzer results
Line numberMessage
17Using ISEMPTY is usually faster than comparing LENGTH to 0.
Coverage results
[ Show coverage for parent directory ]
Total lines in function20
Non-code lines (comments, blank lines)11
Code lines (lines that can run)9
Code lines that did run6
Code lines that did not run3
Coverage (did run/can run)66.67 %
Function listing
   time   calls  line
1 function pj = preparepointers( pj )
2 %PREPAREPOINTERS Set Pointers of all open Figures to Watch.
3 % Saves current value for restoration by RESTOREPOINTERS.
4 %
5 % See also RESTOREPOINTER
6
7 % Copyright 1984-2002 The MathWorks, Inc.
8 % $Revision: 1.4 $ $Date: 2002/04/10 17:09:55 $
9
10 %Let user know we are working and get rid of XOR cross hair cursor
40 11 if strcmp( pj.Driver, 'mfile' )
12 pj.AllFigures = [];
13 return
14 end
15
0.03 40 16 pj.AllFigures = findall(0,'type','figure');
40 17 if length(pj.AllFigures) > 0
40 18 pj.AllPointers = get( pj.AllFigures, 'pointer');
40 19 set( pj.AllFigures, 'pointer', 'watch')
40 20 end