This is a static copy of a profile report

Home

graphics/private/isSLorSF (54 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:15 using cpu time.
function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/graphics/private/isSLorSF.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/useOriginalHGPrintingfunction36
graphics/private/inputcheckfunction12
print>LocalHandleSimulinksubfunction6
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
37
end
540 s0%
35
end % if
540 s0%
34
end % if
540 s0%
31
break;
540 s0%
30
if(~slOrSf)
540 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graphics/private/isslhandlefunction540 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 function37
Non-code lines (comments, blank lines)11
Code lines (lines that can run)26
Code lines that did run17
Code lines that did not run9
Coverage (did run/can run)65.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 

     54 
   5 
    slOrSf = false; 
   6 

   7 
    % No Simulink which means no stateflow either
     54 
   8 
    if(exist('open_system','builtin') == 0) 
   9 
        return;
  10 
    end
  11 

     54 
  12 
    if(isempty(pj.Handles)) 
  13 
        return;
  14 
    end
  15 

     54 
  16 
    handles = pj.Handles{:}; 
  17 

     54 
  18 
    if(~all(ishandle(handles))) 
  19 
       return; 
  20 
    end
  21 

     54 
  22 
    if(all(isslhandle(handles))) 
  23 
        slOrSf = true;
     54 
  24 
    else 
     54 
  25 
        if(all(ishghandle(handles))) 
     54 
  26 
            slOrSf = true; 
     54 
  27 
            for i = 1:length(handles) 
     54 
  28 
                isSfPortal = strcmpi(get(handles(i),'Tag'),'SF_PORTAL'); 
     54 
  29 
                slOrSf = slOrSf && isSfPortal; 
     54 
  30 
                if(~slOrSf) 
     54 
  31 
                    break; 
  32 
                end
  33 
            end % for
     54 
  34 
        end % if 
     54 
  35 
    end % if 
  36 

     54 
  37 
end 

Other subfunctions in this file are not included in this listing.