This is a static copy of a profile reportHome
graphics/private/isSLorSF (80 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:33 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/isSLorSF.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
13 | return; | 80 | 0 s | 0% |  |
12 | if(isempty(pj.Handles)) | 80 | 0 s | 0% |  |
8 | if(exist('open_system','builti... | 80 | 0 s | 0% |  |
5 | slOrSf = false; | 80 | 0 s | 0% |  |
All other lines | | | 0.011 s | 100.0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 37 |
Non-code lines (comments, blank lines) | 11 |
Code lines (lines that can run) | 26 |
Code lines that did run | 4 |
Code lines that did not run | 22 |
Coverage (did run/can run) | 15.38 % |
Function listing
time calls line
1 function slOrSf = isSLorSF(pj)
2 % Helper to check whether the handles in pj is Simulink/Stateflow
3 % -sramaswa
4
80 5 slOrSf = false;
6
7 % No Simulink which means no stateflow either
80 8 if(exist('open_system','builtin') == 0)
9 return;
10 end
11
80 12 if(isempty(pj.Handles))
80 13 return;
14 end
15
16 handles = pj.Handles{:};
17
18 if(~all(ishandle(handles)))
19 return;
20 end
21
22 if(all(isslhandle(handles)))
23 slOrSf = true;
24 else
25 if(all(ishghandle(handles)))
26 slOrSf = true;
27 for i = 1:length(handles)
28 isSfPortal = strcmpi(get(handles(i),'Tag'),'SF_PORTAL');
29 slOrSf = slOrSf && isSfPortal;
30 if(~slOrSf)
31 break;
32 end
33 end % for
34 end % if
35 end % if
36
37 end
Other subfunctions in this file are not included in this listing.