This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
print | function | 40 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
16 | pj.AllFigures = findall(0,'typ... | 40 | 0.033 s | 100.0% |  |
20 | end | 40 | 0 s | 0% |  |
19 | set( pj.AllFigures, 'pointer',... | 40 | 0 s | 0% |  |
18 | pj.AllPointers = get( pj.AllFi... | 40 | 0 s | 0% |  |
17 | if length(pj.AllFigures) > ... | 40 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.033 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
findall | function | 40 | 0.033 s | 100.0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.033 s | 100% | |
Code Analyzer results
Line number | Message |
17 | Using ISEMPTY is usually faster than comparing LENGTH to 0. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 20 |
Non-code lines (comments, blank lines) | 11 |
Code lines (lines that can run) | 9 |
Code lines that did run | 6 |
Code lines that did not run | 3 |
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