This is a static copy of a profile report

Home

graphics/private/isslhandle (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/isslhandle.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/isSLorSFfunction54
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
26
end
540 s0%
13
if isSL(i)
540 s0%
12
for i = 1:length(h(:))
540 s0%
11
isSL = ~ishghandle(h);
540 s0%
8
narginchk(1,1)
540 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
22The value assigned to variable 'ex' might be unused.
Coverage results
Show coverage for parent directory
Total lines in function26
Non-code lines (comments, blank lines)11
Code lines (lines that can run)15
Code lines that did run5
Code lines that did not run10
Coverage (did run/can run)33.33 %
Function listing
time 
calls 
 line
   1 
function isSL = isslhandle(h)
   2 
%ISSLHANDLE True for Simulink object handles for models or subsystem.
   3 
%   ISSLHANDLE(H) returns an array that contains 1's where the elements of
   4 
%   H are valid printable Simulink object handles and 0's where they are not.
   5 

   6 
%   Copyright 1984-2008 The MathWorks, Inc.
   7 

     54 
   8 
narginchk(1,1) 
   9 

  10 
%See if it is a handle of some kind
     54 
  11 
isSL = ~ishghandle(h); 
     54 
  12 
for i = 1:length(h(:)) 
     54 
  13 
    if isSL(i) 
  14 
        %If can not GET the Type of the object then it is not an HG object.
  15 
        try
  16 
            %Use EVALC to suppress an error message when Simulink isn't fully installed.
  17 
            evalc('t = get_param(h(i),''type'');');
  18 
            isSL(i) = strcmp( 'block_diagram', get_param( h(i), 'type' ) );
  19 
            if ~isSL(i)
  20 
                isSL(i) = strcmp( 'SubSystem', get_param( h(i), 'blocktype' ) );
  21 
            end
  22 
        catch ex
  23 
            isSL(i) = false;
  24 
        end
  25 
    end
     54 
  26 
end